{"id":3388,"date":"2025-09-10T10:59:22","date_gmt":"2025-09-10T08:59:22","guid":{"rendered":"https:\/\/neuraldesigner.com\/blog\/export-expression-python\/"},"modified":"2025-11-27T15:21:37","modified_gmt":"2025-11-27T14:21:37","slug":"export-expression-python","status":"publish","type":"blog","link":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/","title":{"rendered":"Export Neural Designer models to Python"},"content":{"rendered":"<section id=\"Introduction\">Neural Designer is a powerful tool for building and analyzing neural network models. However, when working with these models, it is crucial to have access to the underlying mathematical expressions that govern their behavior. Fortunately, Neural Designer provides several options for working with these expressions.The predictive model takes the form of a function of the outputs concerning the inputs.<\/p>\n<p>We can export the mathematical expression that the model represents to different programming languages.<\/p>\n<p>In this tutorial, we will explain how to export the mathematical expression of our model in the Python programming language.<\/p>\n<\/section>\n<h3>Contents<\/h3>\n<section>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><a href=\"#ExportMathExpression\">How to export the mathematical expression?<\/a><\/li>\n<li><a href=\"#ModelManipulation\">Using a Pre-Trained Neural Network Model in Python<\/a><\/li>\n<li><a href=\"#Conclusions\">Conclusions<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><!--\n \t\n\n<li><a href=\"#TutorialVideo\">Tutorial video<\/a><\/li>\n\n\n \t\n\n<li><a href=\"#References\">References<\/a><\/li>\n\n\n--><\/p>\n<\/section>\n<section id=\"Introduction\"><\/section>\n<section id=\"ExportMathExpression\">\n<h2>1. How to export the mathematical expression?<\/h2>\n<p>Once we have trained the model and performed the testing analysis, the neural network can predict outputs for inputs it has never seen. This process is called model deployment.<\/p>\n<p>We obtain the mathematical expression of the trained neural network.<\/p>\n<p>We can implement this expression in any programming language to obtain the output for our input.<\/p>\n<h3>Example: The mathematical expression of the iris flower classification model<\/h3>\n<p>Classification of iris flowers is the best-known example of machine learning.<\/p>\n<p>The aim is to classify iris flowers among three species (Setosa, Versicolor, or Virginica) from the measurements of sepals&#8217; and petals&#8217; length and width.<\/p>\n<p>The central goal is to design a model that makes proper classifications for new flowers. In other words, one that exhibits good generalization.<\/p>\n<p>After training and testing the model, we move on to the model deployment process.<\/p>\n<p><img decoding=\"async\" style=\"width: 75%; height: auto;\" src=\"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp\" alt=\"\" \/><\/p>\n<p>One such option is &#8220;write expression&#8221;, which allows users to view the mathematical expression represented by the neural network of the model. By clicking on this option, Neural Designer will display the model&#8217;s function to predict outputs based on inputs. This information can be crucial for understanding how the model works and making modifications to improve its performance.<\/p>\n<p>Another option available to users is &#8220;export expression&#8221;. Users can export the mathematical expression the model represents in several programming languages by selecting this option. This can be particularly useful for incorporating the model into other software programs or integrating it into larger systems.<\/p>\n<p><img decoding=\"async\" style=\"width: 75%; height: auto;\" src=\"https:\/\/www.neuraldesigner.com\/images\/export-expression-Py.webp\" alt=\"\" \/><\/p>\n<p>To export the mathematical expression in Python code, choose this option from the drop-down menu and save it in the model directory.<\/p>\n<\/section>\n<section id=\"ModelManipulation\">\n<h2>2. Using a Pre-Trained Neural Network Model in Python<\/h2>\n<p>Exporting the mathematical expression of a pre-trained neural network in Python allows us to use the trained model to make predictions on new data sets without the need to retrain the network from scratch.<\/p>\n<p>Example: Using the Pre-Trained iris flower classification model in Python<\/p>\n<p>The following listing is an iris flower classification model neural network in the Python programming language<\/p>\n<p><code><br \/>\nArtificial Intelligence Techniques SL<br \/>\nartelnics@artelnics.com<\/code><\/p>\n<p>Your model has been exported to this Python file. You can manage it with the &#8216;NeuralNetwork&#8217; class.<\/p>\n<p><code>\t<\/code><\/p>\n<pre>Example:<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>model = NeuralNetwork()<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>sample = [input_1, input_2, input_3, input_4, &#8230;]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>outputs = model.calculate_output(sample)<\/p>\n<p>&nbsp;<\/p>\n<p>Input Names:<br \/>\n0) sepal_length<br \/>\n1) sepal_width<br \/>\n2) petal_length<br \/>\n3) petal_width<\/p>\n<p>You can predict a batch of samples using the calculate_batch_output method. <b>IMPORTANT<\/b>: input batch must be type.<\/p>\n<pre>Example_1:model = NeuralNetwork()input_batch = np.array([[1, 2], [4, 5]])outputs = model.calculate_batch_output(input_batch)Example_2:input_batch = pd.DataFrame( {'col1': [1, 2], 'col2': [3, 4]})<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>outputs = model.calculate_batch_output(input_batch.values)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&#8221;&#8217;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>import math<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>import numpy as np<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>class NeuralNetwork:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>def __init__(self):<br \/>\nself.inputs_number = 4<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>def calculate_outputs(self, inputs):<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>sepal_length = inputs[0]<br \/>\nsepal_width = inputs[1]<br \/>\npetal_length = inputs[2]<br \/>\npetal_width = inputs[3]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>scaled_sepal_length = (sepal_length-5.843329906)\/0.8280659914<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>scaled_sepal_width = (sepal_width-3.053999901)\/0.4335939884<br \/>\nscaled_petal_length = (petal_length-3.758670092)\/1.764420033<br \/>\nscaled_petal_width = (petal_width-1.19867003)\/0.7631610036<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>perceptron_layer_1_output_0 = np.tanh( -0.183118 + (scaled_sepal_length*0.134644) + (scaled_sepal_width*0.149121) + (scaled_petal_length*-0.102136) + (scaled_petal_width*-0.0227783) )<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>perceptron_layer_1_output_1 = np.tanh( -0.0550171 + (scaled_sepal_length*-0.144019) + (scaled_sepal_width*0.188538) + (scaled_petal_length*0.126428) + (scaled_petal_width*-0.0199585) )<br \/>\nperceptron_layer_1_output_2 = np.tanh( -0.131689 + (scaled_sepal_length*0.195227) + (scaled_sepal_width*0.0878418) + (scaled_petal_length*0.196912) + (scaled_petal_width*0.104858) )<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>probabilistic_layer_combinations_0 = -0.11217 -0.10332*perceptron_layer_1_output_0 +0.0966187*perceptron_layer_1_output_1 -0.0124268*perceptron_layer_1_output_2<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>probabilistic_layer_combinations_1 = -0.0184937 +0.012561*perceptron_layer_1_output_0 -0.0662964*perceptron_layer_1_output_1 -0.0870483*perceptron_layer_1_output_2<br \/>\nprobabilistic_layer_combinations_2 = 0.0834106 +0.153918*perceptron_layer_1_output_0 +0.0744019*perceptron_layer_1_output_1 -0.15564*perceptron_layer_1_output_2<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>sum = np.exp(probabilistic_layer_combinations_0) + np.exp(probabilistic_layer_combinations_1) + np.exp(probabilistic_layer_combinations_2)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>iris_setosa = np.exp(probabilistic_layer_combinations_0)\/sum<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>iris_versicolor = np.exp(probabilistic_layer_combinations_1)\/sum<br \/>\niris_virginica = np.exp(probabilistic_layer_combinations_2)\/sum<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>out = [None]*3<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>out[0] = iris_setosa<br \/>\nout[1] = iris_versicolor<br \/>\nout[2] = iris_virginica<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>return out<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>def calculate_batch_output(self, input_batch):<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>output_batch = [None]*input_batch.shape[0]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>for i in range(input_batch.shape[0]):<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>inputs = list(input_batch[i])<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>output = self.calculate_outputs(inputs)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>output_batch[i] = output<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>return output_batch<\/p>\n<p>&nbsp;<\/p>\n<p>The code starts with an explanatory text string in triple quotes describing how to use the neural network. It then defines a Python class called <i>NeuralNetwork<\/i>. The class has two methods: <i>calculate_outputs and calculate_batch_output<\/i>. The first method calculates the neural network&#8217;s output for a single set of inputs, while the second method calculates the neural network&#8217;s output for a batch of input sets.<\/p>\n<p>The <i>calculate_outputs<\/i>\u00a0method lists four input values (<i>sepal length, sepal width, petal length, and petal width<\/i>) and returns a list of three output values (probabilities for each iris species). First, the method uses the predefined weights for each perceptron in the hidden layer to calculate the hidden layer output. Then, it uses the predefined weights for the output layer to calculate the probability distribution for each iris species.<\/p>\n<p>The <i>calculate_batch_output<\/i>\u00a0method takes an input_batch input matrix containing a set of inputs for various iris flower examples<br \/>\nand returns an <i>output_batch<\/i>\u00a0output matrix containing the probability distribution for each iris flower example.<\/p>\n<p>To use the model in your Python project, you should follow these steps:<\/p>\n<p>1. Save the <b><i>model.py<\/i><\/b>\u00a0file in the same folder as your main Python file (the file you run).<\/p>\n<p>2. Import the <b><i>NeuralNetwork<\/i><\/b>\u00a0class from the <b><i>model.py<\/i><\/b>\u00a0file in your main Python file using the following code:<\/p>\n<p><code>from mode import NeuralNetwork<br \/>\n<\/code><\/p>\n<p>3. Create an instance of the <b><i>NeuralNetwork<\/i><\/b>\u00a0model in your main Python file:<\/p>\n<p><code><br \/>\nmodel = NeuralNetwork()<br \/>\n<\/code><\/p>\n<p>4. To predict the iris species for a single input set, you should pass the inputs as a list to the <b><i>calculate_outputs()<\/i><\/b>\u00a0function of the model instance:<\/p>\n<p><code><br \/>\ninputs = [5.1, 3.5, 1.4, 0.2]  # example inputs<br \/>\noutputs = model.calculate_outputs(inputs)<br \/>\nprint(outputs)<br \/>\n<\/code><\/p>\n<p>This will return a list of three values representing the predicted probabilities for each iris species: `[0.9818439478701074, 0.01815605212989281, 4.239074497248452e-16]`.<\/p>\n<p>5. To predict the iris species for a batch of inputs, you should pass the inputs as a numpy array to the <b><i>calculate_batch_output()<\/i><\/b>\u00a0function of the model instance:<\/p>\n<p><code><br \/>\nimport numpy as np<\/code><\/p>\n<p>input_batch = np.array([[5.1, 3.5, 1.4, 0.2], [4.9, 3.0, 1.4, 0.2]]) # example inputs<br \/>\noutputs = model.calculate_batch_output(input_batch)<br \/>\nprint(outputs)<\/p>\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">This will return a two-row and three-column matrix representing the predicted probabilities for each iris species for each input set:\u00a0<strong>[[0.98184395, 0.01815605, 4.23907450e-16], [0.97104675, 0.02895325, 5.88727745e-17]].<\/strong><\/span><\/p>\n<\/section>\n<section id=\"Conclusions\">\n<h2>Conclusions<\/h2>\n<p>The mathematical expression of a pre-trained neural network exported in different programming codes enables us to use the trained model to make predictions on new data sets without retraining the network from scratch.<\/p>\n<p>Exporting the pre-trained mathematical expression of a neural network allows us to leverage the knowledge and generalization capability of the model in different applications and projects.<\/p>\n<p>This is a fundamental step to take full advantage of the potential of artificial intelligence and machine learning in Python.<\/p>\n<h2>Related posts<\/h2>\n<\/section>\n<p><!--\n\n\n\n<section id=\"TutorialVideo\">\n\n\n<h2> Tutorial video<\/h2>\n\n\nYou can watch the video tutorial to help you complete this article.\n\n<iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/YYulr5S4dQQ\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n\n<\/section>\n\n\n\n\n<section id=\"References\">\n\n\n<h2>References:<\/h2>\n\n\n\n\n<ul>\n \t\n\n<li>Kaggle Machine Learning Repository. <a href=\"https:\/\/www.kaggle.com\/hellbuoy\/car-price-prediction\">Car Price Assignment Data Set<\/a>.<\/li>\n\n\n<\/ul>\n\n\n<\/section>\n\n--><\/p>\n","protected":false},"author":10,"featured_media":2149,"template":"","categories":[],"tags":[36],"class_list":["post-3388","blog","type-blog","status-publish","has-post-thumbnail","hentry","tag-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Export Neural Designer models to Python<\/title>\n<meta name=\"description\" content=\"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Export Neural Designer models to Python\" \/>\n<meta property=\"og:description\" content=\"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-27T14:21:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1337\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/\",\"name\":\"Export Neural Designer models to Python\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp\",\"datePublished\":\"2025-09-10T08:59:22+00:00\",\"dateModified\":\"2025-11-27T14:21:37+00:00\",\"description\":\"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp\",\"width\":2560,\"height\":1337},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.neuraldesigner.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Export Neural Designer models to Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explanable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Export Neural Designer models to Python","description":"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/","og_locale":"en_US","og_type":"article","og_title":"Export Neural Designer models to Python","og_description":"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.","og_url":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/","og_site_name":"Neural Designer","article_modified_time":"2025-11-27T14:21:37+00:00","og_image":[{"width":2560,"height":1337,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/","url":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/","name":"Export Neural Designer models to Python","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp","datePublished":"2025-09-10T08:59:22+00:00","dateModified":"2025-11-27T14:21:37+00:00","description":"Use Neural Designer to export the mathematical expression of your machine learning model to Python programming language.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/foto-export-python-scaled.webp","width":2560,"height":1337},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.neuraldesigner.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Export Neural Designer models to Python"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explanable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/10"}],"version-history":[{"count":1,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3388\/revisions"}],"predecessor-version":[{"id":21408,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3388\/revisions\/21408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2149"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}