{"id":3388,"date":"2026-04-10T13:18:26","date_gmt":"2026-04-10T11:18:26","guid":{"rendered":"https:\/\/neuraldesigner.com\/blog\/export-expression-python\/"},"modified":"2026-07-01T14:11:41","modified_gmt":"2026-07-01T12:11:41","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":"<style>.ndb{width:100vw;margin-left:calc(50% - 50vw);background:#eeeeee;padding:22px 24px 14px;font-family:\"Outfit\",\"Roboto\",Arial,sans-serif;color:#1b2635}.ndb *{box-sizing:border-box}.ndb a{text-decoration:none}.ndb-wrap{width:min(100%,960px);margin:0 auto}.ndb-lead{font-size:18px;line-height:1.6;color:#3a4a5a;font-weight:300;margin:0 0 22px}.ndb-lead a{color:#2d799f;font-weight:600}.ndb-highlight{margin:0 0 36px;padding:28px 34px;border-radius:18px;background:linear-gradient(135deg,#56a1c8 0%,#245e80 100%);color:#fff;box-shadow:0 16px 34px rgba(30,83,116,.22)}.ndb-highlight p{margin:0;color:#fff;font-size:20px;line-height:1.5;font-weight:400}.ndb-highlight b{font-weight:800}.ndb-toc{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 42px;padding:0}.ndb-toc a{padding:10px 18px;background:#f2f2f2;border-radius:22px;color:#12354b!important;font-size:14px;font-weight:600;box-shadow:-6px -6px 12px rgba(255,255,255,.9),6px 6px 12px rgba(30,83,116,.10)}.ndb-toc a:hover{color:#2d799f!important}.ndb-card{margin:0 0 26px;padding:32px 40px;background:#f5f6f7;border-radius:20px;box-shadow:-12px -12px 24px rgba(255,255,255,.9),12px 12px 24px rgba(30,83,116,.10);scroll-margin-top:90px}.ndb-card h2{margin:0 0 20px;padding-bottom:12px;color:#001233;font-size:24px;font-weight:700;position:relative;border-bottom:1px solid #dbe5ec}.ndb-card h2:after{content:\"\";position:absolute;left:0;bottom:-1px;width:62px;height:3px;background:#56a1c8;border-radius:2px}.ndb-card p{margin:0 0 14px;font-size:16.5px;line-height:1.62;color:#33424f}.ndb-card a{color:#2d799f;font-weight:500}.ndb-card ul{margin:0 0 14px;padding-left:22px}.ndb-card li{margin:5px 0;font-size:16px;line-height:1.5;color:#33424f}.ndb-card img:not([src$=\".svg\"]):not([data-src$=\".svg\"]){display:block;width:auto;max-width:min(560px,100%);height:auto;margin:22px auto;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.12)}.ndb-card th img[src$=\".svg\"],.ndb-card th img[data-src$=\".svg\"],.ndb-card img[src$=\".svg\"],.ndb-card img[data-src$=\".svg\"]{display:inline-block;max-width:24px;height:auto;margin:0 6px -4px 0;box-shadow:none}.ndb-card table{border-collapse:separate;border-spacing:0;width:100%;max-width:100%;margin:22px 0;font-size:15px;background:#fbfcfd;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px rgba(0,18,51,.08)}.ndb-card th,.ndb-card td{padding:11px 16px;border-bottom:1px solid #e6ecf0;text-align:left;vertical-align:top}.ndb-card thead th{background:#12354b;color:#fff;font-weight:600;text-align:center}.ndb-card tbody th{background:#e9f1f6;color:#12354b;font-weight:600}.ndb-card td{color:#33424f}.ndb-card table ul{margin:0;padding-left:18px}.ndb-card table li{font-size:14px}.ndb-card pre{margin:22px 0;padding:22px 24px;background:#0b1830!important;color:#e6eef5!important;border-radius:14px;overflow-x:auto;font-family:Consolas,Menlo,monospace;font-size:12.5px;line-height:1.5;white-space:pre}.ndb-card--accent{background:#e9f2f8}@media(max-width:820px){.ndb-card{padding:26px 22px}.ndb-card h2{font-size:21px}.ndb-toc{gap:8px}}@media(max-width:640px){.ndb{padding:12px 14px}}.ndb-card thead th{background:#12354b!important;color:#fff!important}.ndb-card tbody th{background:#e9f1f6!important;color:#12354b!important}.ndb-card td{background:#fbfcfd!important;color:#33424f!important}.ndb-card .mjx-chtml.MJXc-display{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:2px 0 8px}.ndb-card .mjx-chtml.MathJax_CHTML{font-size:18px!important}.ndb-card pre{background:#eceff2!important;color:#1b2635!important;border:1px solid #dfe4e9!important}.ndb-card pre *{color:#1b2635!important;background:transparent!important}<\/style><div class=\"ndb\"><div class=\"ndb-wrap\"><div class=\"ndb-lead\"><h3><span style=\"color: inherit; font-family: inherit; font-size: 1.75rem;\">Contents<\/span><\/h3>\n<div id=\"contenido\" class=\"contenido\">\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><a href=\"#Introduction\">Introduction<\/a>.<\/li>\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<\/div><ul class=\"ndb-toc\"><li><a href=\"#Introduction\">Introduction<\/a><\/li><li><a href=\"#ExportMathExpression\">How to export the mathematical expression?<\/a><\/li><li><a href=\"#ModelManipulation\">Using a Pre-Trained Neural Network Model in Python<\/a><\/li><li><a href=\"#Conclusions\">Conclusions<\/a><\/li><\/ul><div class=\"ndb-card\" id=\"Introduction\"><h2>Introduction<\/h2><p>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.<\/p>\n<p>The predictive model takes the form of a function of the outputs concerning the inputs.<\/p>\n<p>We can export the mathematical expression 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<\/div><div class=\"ndb-card\" id=\"ExportMathExpression\"><h2>How to export the mathematical expression?<\/h2><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 which 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<\/div><div class=\"ndb-card\" id=\"ModelManipulation\"><h2>Using a Pre-Trained Neural Network Model in Python<\/h2><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 next listing is iris flower classification model neural network in the Python programming language<\/p>\n<p><code><br \/>Artificial Intelligence Techniques SL<br \/>artelnics@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:<p><\/p>\n<p>\n<\/p>\n<p>model = NeuralNetwork()<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">sample = [input_1, input_2, input_3, input_4, ...]<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">outputs = model.calculate_output(sample)<\/span><\/p>\n<\/pre>\n<p>Inputs Names:<br \/>0) sepal_length<br \/>1) sepal_width<br \/>2) petal_length<br \/>3) 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]})<p><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">outputs = model.calculate_batch_output(input_batch.values)<\/span><\/p>\n<p>\n<\/p>\n<p>'''<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">import math<\/span><\/p>\n<p>\n<\/p>\n<p>import numpy as np<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">class NeuralNetwork:<\/span><\/p>\n<p>\n<\/p>\n<p>def __init__(self):<br>self.inputs_number = 4<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">def calculate_outputs(self, inputs):<\/span><\/p>\n<p>\n<\/p>\n<p>sepal_length = inputs[0]<br>sepal_width = inputs[1]<br>petal_length = inputs[2]<br>petal_width = inputs[3]<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">scaled_sepal_length = (sepal_length-5.843329906)\/0.8280659914<\/span><\/p>\n<p>\n<\/p>\n<p>scaled_sepal_width = (sepal_width-3.053999901)\/0.4335939884<br>scaled_petal_length = (petal_length-3.758670092)\/1.764420033<br>scaled_petal_width = (petal_width-1.19867003)\/0.7631610036<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">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) )<\/span><\/p>\n<p>\n<\/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>perceptron_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>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">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<\/span><\/p>\n<p>\n<\/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>probabilistic_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>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">sum = np.exp(probabilistic_layer_combinations_0) + np.exp(probabilistic_layer_combinations_1) + np.exp(probabilistic_layer_combinations_2)<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">iris_setosa = np.exp(probabilistic_layer_combinations_0)\/sum<\/span><\/p>\n<p>\n<\/p>\n<p>iris_versicolor = np.exp(probabilistic_layer_combinations_1)\/sum<br>iris_virginica = np.exp(probabilistic_layer_combinations_2)\/sum<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">out = [None]*3<\/span><\/p>\n<p>\n<\/p>\n<p>out[0] = iris_setosa<br>out[1] = iris_versicolor<br>out[2] = iris_virginica<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">return out<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">def calculate_batch_output(self, input_batch):<\/span><\/p>\n<p>\n<\/p>\n<p>output_batch = [None]*input_batch.shape[0]<\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">for i in range(input_batch.shape[0]):<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">inputs = list(input_batch[i])<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">output = self.calculate_outputs(inputs)<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">output_batch[i] = output<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-weight: var( --e-global-typography-text-font-weight );\">return output_batch<\/span><\/p>\n<\/pre>\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>&nbsp;method 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>&nbsp;method takes an input_batch input matrix containing a set of inputs for various iris flower examples<br \/>and returns an <i>output_batch<\/i>&nbsp;output 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>&nbsp;file in the same folder as your main Python file (the file you run).<\/p>\n<p>2. Import the <b><i>NeuralNetwork<\/i><\/b>&nbsp;class from the <b><i>model.py<\/i><\/b>&nbsp;file in your main Python file using the following code:<\/p>\n<p><code>from mode import NeuralNetwork<br \/><\/code><\/p>\n<p>3. Create an instance of the <b><i>NeuralNetwork<\/i><\/b>&nbsp;model in your main Python file:<\/p>\n<p><code><br \/>model = NeuralNetwork()<br \/><\/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>&nbsp;function of the model instance:<\/p>\n<p><code><br \/>inputs = [5.1, 3.5, 1.4, 0.2]  # example inputs<br \/>outputs = model.calculate_outputs(inputs)<br \/>print(outputs)<br \/><\/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>&nbsp;function of the model instance:<\/p>\n<p><code><br \/>import 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 \/>outputs = model.calculate_batch_output(input_batch)<br \/>print(outputs)<\/p>\n<p>This will return a two rows and three columns matrix representing the predicted probabilities for each iris species for each input set:&nbsp;<b>[[0.98184395, 0.01815605, 4.23907450e-16], [0.97104675, 0.02895325, 5.88727745e-17]].<\/b><\/p>\n<\/div><div class=\"ndb-card ndb-card--accent\" id=\"Conclusions\"><h2>Conclusions<\/h2><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. This is a fundamental step to take full advantage of the potential of artificial intelligence and machine learning in Python.<\/p>\n<\/div><\/div><\/div>","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=\"2026-07-01T12:11:41+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\":\"2026-04-10T11:18:26+00:00\",\"dateModified\":\"2026-07-01T12:11:41+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,\"caption\":\"Exporting a model to Python\"},{\"@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":"2026-07-01T12:11:41+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":"2026-04-10T11:18:26+00:00","dateModified":"2026-07-01T12:11:41+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,"caption":"Exporting a model to Python"},{"@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}]}}