{"id":3386,"date":"2023-08-31T10:59:22","date_gmt":"2023-08-31T10:59:22","guid":{"rendered":"https:\/\/neuraldesigner.com\/blog\/export-expression-javascrip\/"},"modified":"2025-09-22T18:31:57","modified_gmt":"2025-09-22T16:31:57","slug":"export-expression-javascript","status":"publish","type":"blog","link":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/","title":{"rendered":"Export Neural Designer models to JavaScript"},"content":{"rendered":"<section>\n<h3>Contents<\/h3>\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 JS<\/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\">\n<h2>1. Introduction<\/h2>\n<p>Neural Designer is a powerful tool for building and analyzing neural network models.<\/p>\n<p>However, when working with these models, it is crucial to have access to the underlying mathematical expressions that govern their behavior.<\/p>\n<p>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 that the model represents to different programming languages.<\/p>\n<p>In this tutorial, we explain how to export the mathematical expression of our model in the JavaScript programming language.<\/p>\n<\/section>\n<section id=\"ExportMathExpression\">\n<h2>2. 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.<\/p>\n<p>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 accurately classifies 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 model&#8217;s neural network.<\/p>\n<p>By clicking on this option, Neural Designer displays the model&#8217;s function to predict outputs based on inputs.<\/p>\n<p>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 the &#8220;export expression&#8221; feature.<\/p>\n<p>Users can export the mathematical expression that the model represents in several programming languages by selecting this option.<\/p>\n<p>This can be particularly useful for integrating the model into other software programs or 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 JS 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>3. Using a Pre-Trained Neural Network Model in JS<\/h2>\n<p>Exporting the mathematical expression of a pre-trained neural network in JS allows us to use the trained model to make predictions on new datasets without the need to retrain the network from scratch.<\/p>\n<h3>Example: Using the Pre-Trained iris flower classification model in JS<\/h3>\n<p>The next listing is an iris flower classification model neural network in the JavaScript programming language<\/p>\n<p><code><br \/>\n&lt;!--<br \/>\nArtificial Intelligence Techniques SL<br \/>\nartelnics@artelnics.com\t<\/code><\/p>\n<p><code><\/code><\/p>\n<p>Your model has been exported to this JavaScript file. You can manage it with the main method, where you can change the values of your inputs. For example:<\/p>\n<p>If we want to add these 3 values (0.3, 2.5, and 1.8) to our 3 inputs (Input_1, Input_2, and Input_3), the main program has to look like this:<\/p>\n<pre>Inputs Names:\r\n&lt;!--\r\nArtificial Intelligence Techniques SL\r\nartelnics@artelnics.com<\/pre>\n<p>&nbsp;<\/p>\n<p>int neuralNetwork(){<br \/>\nvector&lt;float&gt; inputs(3);<\/p>\n<p>&nbsp;<\/p>\n<p>const float asdas = 0.3;<br \/>\ninputs[0] = asdas;<br \/>\nconst float input2 = 2.5;<br \/>\ninputs[1] = input2;<br \/>\nconst float input3 = 1.8;<br \/>\ninputs[2] = input3;<br \/>\n. . .<\/p>\n<p>&nbsp;<\/p>\n<p>Inputs Names:<br \/>\n0) sepal_length<br \/>\n1) sepal_width<br \/>\n2) petal_length<br \/>\n3) petal_width<br \/>\n&#8211;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!DOCTYPE HTML&gt;<br \/>\n&lt;html lang=&#8221;en&#8221;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;head&gt;<br \/>\n&lt;link href=&#8221;https:\/\/www.neuraldesigner.com\/assets\/css\/neuraldesigner.css&#8221; rel=&#8221;stylesheet&#8221; \/&gt;<br \/>\n&lt;link href=&#8221;https:\/\/www.neuraldesigner.com\/images\/fav.ico&#8221; rel=&#8221;shortcut icon&#8221; type=&#8221;image\/x-icon&#8221; \/&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;style&gt;<br \/>\n.button<br \/>\n{<br \/>\nbackground-color: #6F8FAF;<br \/>\nborder: none; color: white;<br \/>\ntext-align: center;<br \/>\nfont-size: 16px;<br \/>\nmargin: 4px 4px;<br \/>\ncursor: pointer;<br \/>\n}<br \/>\n&lt;\/style&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;section&gt;<br \/>\n&lt;br\/&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;div align=&#8221;center&#8221; style=&#8221;display:block;text-align: center;&#8221;&gt;<br \/>\n&lt;!&#8211; MENU OPTIONS HERE &#8211;&gt;<br \/>\n&lt;form style=&#8221;display: inline-block;margin-left: auto; margin-right: auto;&#8221;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;table border=&#8221;1px&#8221;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>INPUTS<br \/>\n&lt;!&#8211; 0scaling layer &#8211;&gt;<br \/>\n&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; sepal_length &lt;\/td&gt;<br \/>\n&lt;td style=&#8221;text-align:center&#8221;&gt;<br \/>\n&lt;input type=&#8221;range&#8221; id=&#8221;sepal_length&#8221; value=&#8221;6.1&#8243; min=&#8221;4.3&#8243; max=&#8221;7.9&#8243; step=&#8221;0.036&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;sepal_length_text&#8217;)&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;number&#8221; id=&#8221;sepal_length_text&#8221; value=&#8221;6.1&#8243; min=&#8221;4.3&#8243; max=&#8221;7.9&#8243; step=&#8221;0.036&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;sepal_length&#8217;)&#8221;&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!&#8211; 1scaling layer &#8211;&gt;<br \/>\n&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; sepal_width &lt;\/td&gt;<br \/>\n&lt;td style=&#8221;text-align:center&#8221;&gt;<br \/>\n&lt;input type=&#8221;range&#8221; id=&#8221;sepal_width&#8221; value=&#8221;3.2&#8243; min=&#8221;2&#8243; max=&#8221;4.4&#8243; step=&#8221;0.024&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;sepal_width_text&#8217;)&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;number&#8221; id=&#8221;sepal_width_text&#8221; value=&#8221;3.2&#8243; min=&#8221;2&#8243; max=&#8221;4.4&#8243; step=&#8221;0.024&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;sepal_width&#8217;)&#8221;&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!&#8211; 2scaling layer &#8211;&gt;<br \/>\n&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; petal_length &lt;\/td&gt;<br \/>\n&lt;td style=&#8221;text-align:center&#8221;&gt;<br \/>\n&lt;input type=&#8221;range&#8221; id=&#8221;petal_length&#8221; value=&#8221;3.95&#8243; min=&#8221;1&#8243; max=&#8221;6.9&#8243; step=&#8221;0.059&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;petal_length_text&#8217;)&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;number&#8221; id=&#8221;petal_length_text&#8221; value=&#8221;3.95&#8243; min=&#8221;1&#8243; max=&#8221;6.9&#8243; step=&#8221;0.059&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;petal_length&#8217;)&#8221;&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!&#8211; 3scaling layer &#8211;&gt;<br \/>\n&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; petal_width &lt;\/td&gt;<br \/>\n&lt;td style=&#8221;text-align:center&#8221;&gt;<br \/>\n&lt;input type=&#8221;range&#8221; id=&#8221;petal_width&#8221; value=&#8221;1.3&#8243; min=&#8221;0.1&#8243; max=&#8221;2.5&#8243; step=&#8221;0.024&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;petal_width_text&#8217;)&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;number&#8221; id=&#8221;petal_width_text&#8221; value=&#8221;1.3&#8243; min=&#8221;0.1&#8243; max=&#8221;2.5&#8243; step=&#8221;0.024&#8243; onchange=&#8221;updateTextInput1(this.value, &#8216;petal_width&#8217;)&#8221;&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/table&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;div align=&#8221;center&#8221;&gt;<br \/>\n&lt;!&#8211; BUTTON HERE &#8211;&gt;<br \/>\n&lt;button onclick=&#8221;neuralNetwork()&#8221;&gt;calculate outputs&lt;\/button&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;br\/&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;table border=&#8221;1px&#8221;&gt;<br \/>\nOUTPUTS<br \/>\n&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; iris_setosa &lt;\/td&gt;<br \/>\n&lt;td&gt;<br \/>\n&lt;input style=&#8221;text-align:right; padding-right:20px;&#8221; id=&#8221;iris_setosa&#8221; value=&#8221;&#8221; type=&#8221;text&#8221; disabled\/&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; iris_versicolor &lt;\/td&gt;<br \/>\n&lt;td&gt;<br \/>\n&lt;input style=&#8221;text-align:right; padding-right:20px;&#8221; id=&#8221;iris_versicolor&#8221; value=&#8221;&#8221; type=&#8221;text&#8221; disabled\/&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;tr style=&#8221;height:3.5em&#8221;&gt;<br \/>\n&lt;td&gt; iris_virginica &lt;\/td&gt;<br \/>\n&lt;td&gt;<br \/>\n&lt;input style=&#8221;text-align:right; padding-right:20px;&#8221; id=&#8221;iris_virginica&#8221; value=&#8221;&#8221; type=&#8221;text&#8221; disabled\/&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/table&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/form&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/section&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;script&gt;<br \/>\nfunction neuralNetwork()<br \/>\n{<br \/>\nvar inputs = [];<br \/>\nvar sepal_length = document.getElementById(&#8220;sepal_length&#8221;).value;<br \/>\ninputs.push(sepal_length);<br \/>\nvar sepal_width = document.getElementById(&#8220;sepal_width&#8221;).value;<br \/>\ninputs.push(sepal_width);<br \/>\nvar petal_length = document.getElementById(&#8220;petal_length&#8221;).value;<br \/>\ninputs.push(petal_length);<br \/>\nvar petal_width = document.getElementById(&#8220;petal_width&#8221;).value;<br \/>\ninputs.push(petal_width);<\/p>\n<p>&nbsp;<\/p>\n<p>var outputs = calculate_outputs(inputs);<br \/>\nvar iris_setosa = document.getElementById(&#8220;iris_setosa&#8221;);<br \/>\niris_setosa.value = outputs[0].toFixed(4);<br \/>\nvar iris_versicolor = document.getElementById(&#8220;iris_versicolor&#8221;);<br \/>\niris_versicolor.value = outputs[1].toFixed(4);<br \/>\nvar iris_virginica = document.getElementById(&#8220;iris_virginica&#8221;);<br \/>\niris_virginica.value = outputs[2].toFixed(4);<br \/>\nupdate_LSTM();<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>function calculate_outputs(inputs)<br \/>\n{<br \/>\nvar sepal_length = +inputs[0];<br \/>\nvar sepal_width = +inputs[1];<br \/>\nvar petal_length = +inputs[2];<br \/>\nvar petal_width = +inputs[3];<\/p>\n<p>&nbsp;<\/p>\n<p>var scaled_sepal_length = (sepal_length-5.843329906)\/0.8280659914;<br \/>\nvar scaled_sepal_width = (sepal_width-3.053999901)\/0.4335939884;<br \/>\nvar scaled_petal_length = (petal_length-3.758670092)\/1.764420033;<br \/>\nvar scaled_petal_width = (petal_width-1.19867003)\/0.7631610036;<\/p>\n<p>&nbsp;<\/p>\n<p>var perceptron_layer_1_output_0 = Math.tanh( -0.454828 + (scaled_sepal_length*-0.702639) + (scaled_sepal_width*1.58777) + (scaled_petal_length*-1.55384) + (scaled_petal_width*-1.00021) );<br \/>\nvar perceptron_layer_1_output_1 = Math.tanh( -2.33981 + (scaled_sepal_length*3.26766) + (scaled_sepal_width*0.645213) + (scaled_petal_length*2.71958) + (scaled_petal_width*3.2668) );<br \/>\nvar perceptron_layer_1_output_2 = Math.tanh( -3.16773 + (scaled_sepal_length*-0.00059909) + (scaled_sepal_width*-0.664832) + (scaled_petal_length*2.84724) + (scaled_petal_width*1.88258) );<\/p>\n<p>&nbsp;<\/p>\n<p>var probabilistic_layer_combinations_0 = -0.53698 +3.6124*perceptron_layer_1_output_0 -3.02915*perceptron_layer_1_output_1 -0.0966353*perceptron_layer_1_output_2 ;<br \/>\nvar probabilistic_layer_combinations_1 = 1.54913 -1.85394*perceptron_layer_1_output_0 +0.152214*perceptron_layer_1_output_1 -2.55223*perceptron_layer_1_output_2 ;<br \/>\nvar probabilistic_layer_combinations_2 = -1.03593 -1.78098*perceptron_layer_1_output_0 +2.85544*perceptron_layer_1_output_1 +2.74533*perceptron_layer_1_output_2 ;<\/p>\n<p>&nbsp;<\/p>\n<p>var sum = Math.exp(probabilistic_layer_combinations_0) + Math.exp(probabilistic_layer_combinations_1) + Math.exp(probabilistic_layer_combinations_2);<\/p>\n<p>&nbsp;<\/p>\n<p>var iris_setosa = Math.exp(probabilistic_layer_combinations_0)\/sum;<br \/>\nvar iris_versicolor = Math.exp(probabilistic_layer_combinations_1)\/sum;<br \/>\nvar iris_virginica = Math.exp(probabilistic_layer_combinations_2)\/sum;<\/p>\n<p>&nbsp;<\/p>\n<p>var out = [];<br \/>\nout.push(iris_setosa);<br \/>\nout.push(iris_versicolor);<br \/>\nout.push(iris_virginica);<\/p>\n<p>&nbsp;<\/p>\n<p>return out;<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>function updateTextInput1(val, id)<br \/>\n{<br \/>\ndocument.getElementById(id).value = val;<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>window.onresize = showDiv;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;!&#8211;script src=&#8221;https:\/\/www.neuraldesigner.com\/app\/htmlparts\/footer.js&#8221;&gt;&lt;\/script&#8211;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&nbsp;<\/p>\n<p><code>    &lt;\/html&gt;<br \/>\n<\/code><\/p>\n<p>The code you have shared is an HTML page with embedded JavaScript code.<\/p>\n<p>This webpage enables interaction with a neural network model exported from the Neural Designer software.<\/p>\n<p>The JavaScript code is responsible for receiving input values from the sliders and text fields in the &#8220;INPUTS&#8221; section.<\/p>\n<p>Then, it uses those values to calculate the outputs of the neural network model using the calculate_outputs function.<\/p>\n<p>These outputs are displayed in the text fields in the &#8220;OUTPUTS&#8221; section.<\/p>\n<p>To export this neural network model to your JavaScript project, you need to follow these steps:<\/p>\n<ol>\n<li>Save the HTML and JavaScript code into a file with the &#8220;.html&#8221; extension, for example, &#8220;neural_network.html&#8221;.<\/li>\n<li>Create an HTML page in your JavaScript project where you want to use the neural network model.<\/li>\n<li>Inside your project&#8217;s HTML page, add an &lt;iframe&gt; tag to load the &#8220;neural_network.html&#8221; page that contains the exported model.<\/li>\n<\/ol>\n<p>For example:<\/p>\n<p><code><br \/>\n&lt;iframe src=\"neural_network.html\"&gt;&lt;\/iframe&gt;<br \/>\n<\/code><\/p>\n<p>Ensure the &#8220;neural_network.html&#8221; file is located in the same directory as your project&#8217;s HTML page.<\/p>\n<p>By loading the &#8220;neural_network.html&#8221; page in your JavaScript project, you will be able to interact with the neural network model and use it in your application.<\/p>\n<p>The input values can be modified using the sliders and text fields, and the outputs will be displayed in the corresponding text fields.<\/p>\n<p>Remember that for the neural network model to work correctly, it&#8217;s crucial to load all the necessary dependencies and CSS styles, as done in the provided code.<\/p>\n<\/section>\n<section id=\"Conclusions\">\n<h2>4. Conclusions<\/h2>\n<p>The mathematical expression of a pre-trained neural network, exported in different programming languages, enables us to use the trained model to make predictions on new datasets without retraining the network from scratch.<\/p>\n<p>Exporting the pre-trained mathematical expression of a neural network enables us to leverage the model&#8217;s knowledge and generalization capabilities in various applications and projects.<\/p>\n<p>This is a fundamental step to fully leverage the potential of artificial intelligence and machine learning in JavaScript.<\/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":122,"featured_media":0,"template":"","categories":[],"tags":[36],"class_list":["post-3386","blog","type-blog","status-publish","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 JavaScript<\/title>\n<meta name=\"description\" content=\"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.\" \/>\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-javascript\/\" \/>\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 JavaScript\" \/>\n<meta property=\"og:description\" content=\"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-22T16:31:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.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-javascript\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/\",\"name\":\"Export Neural Designer models to JavaScript\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp\",\"datePublished\":\"2023-08-31T10:59:22+00:00\",\"dateModified\":\"2025-09-22T16:31:57+00:00\",\"description\":\"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#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 JavaScript\"}]},{\"@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 JavaScript","description":"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.","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-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Export Neural Designer models to JavaScript","og_description":"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.","og_url":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/","og_site_name":"Neural Designer","article_modified_time":"2025-09-22T16:31:57+00:00","og_image":[{"url":"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp","type":"","width":"","height":""}],"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-javascript\/","url":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/","name":"Export Neural Designer models to JavaScript","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp","datePublished":"2023-08-31T10:59:22+00:00","dateModified":"2025-09-22T16:31:57+00:00","description":"Export the mathematical expression of your machine learning model to the JavaScript programming language using Neural Designer.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/images\/export-expression-model-deployment-mac.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/blog\/export-expression-javascript\/#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 JavaScript"}]},{"@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\/3386","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\/122"}],"version-history":[{"count":0,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3386\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}