{"id":46715,"date":"2022-08-17T00:00:00","date_gmt":"2022-08-17T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/blog\/perceptron-neural-network-in-java-and-griddb\/"},"modified":"2025-11-13T12:56:08","modified_gmt":"2025-11-13T20:56:08","slug":"perceptron-neural-network-in-java-and-griddb","status":"publish","type":"post","link":"https:\/\/griddb.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/","title":{"rendered":"Perceptron Neural Network in Java and GridDB"},"content":{"rendered":"<p>A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs.<\/p>\n<p>A multilayer perceptron is made up of many layers of nodes in a directed graph, with every layer being fully connected to the next layer.<\/p>\n<p>In this article, we will be implementing a perceptron neural network model in Java and GridDB. The purpose of the model will be to predict whether house prices are above or below the median house price value.<\/p>\n<p>The full source code and <code>csv<\/code> file can be found here in our Github repo: <a href=\"https:\/\/github.com\/griddbnet\/Blogs\/tree\/perceptron_neural_network\">https:\/\/github.com\/griddbnet\/Blogs\/tree\/perceptron_neural_network<\/a><\/p>\n<h2>Data Description<\/h2>\n<p>The dataset to be used has 11 features. The first 10 attributes of the dataset will be the input features. Each of these inputs describe a feature of a house.<\/p>\n<p>The last attribute of the dataset is the feature that we will be predicting, which describes whether a house price is above the median price or not. A value of 1 means that the house price is above the median value while a value of 0 means that the house price is below the median value.<\/p>\n<p>The data has been stored in a CSV file named <code>housepricedata.csv<\/code>.<\/p>\n<h2>Store the Data in GridDB<\/h2>\n<p>Although we can still use the data from the file, GridDB offers a number of benefits over the CSV file. For instance, GridDB can return query results faster than a CSV file.<\/p>\n<p>That is why we have opted to store the data in GridDB.<\/p>\n<p>Let&#8217;s first import the libraries to help us store the data in GridDB:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">import java.io.File;\nimport java.util.Scanner;\nimport java.io.IOException;\nimport java.util.Collection;\nimport java.util.Properties;\n\nimport com.toshiba.mwcloud.gs.Query;\nimport com.toshiba.mwcloud.gs.RowKey;\nimport com.toshiba.mwcloud.gs.RowSet;\nimport com.toshiba.mwcloud.gs.GridStore;\nimport com.toshiba.mwcloud.gs.Collection;\nimport com.toshiba.mwcloud.gs.GSException;\nimport com.toshiba.mwcloud.gs.GridStoreFactory;<\/code><\/pre>\n<\/div>\n<p>GridDB groups data into containers. Let us create a static Java class to represent the GridDB container where the data will be stored:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">public static class Perceptron {\n     @RowKey String lotArea;\n     String overallQual;\n     String overallCond; \n     String totalBsmtSF;\n     String fullBath;\n     String halfBath;\n     String bedroomAbvGr;\n     String totRmsAbvGrd;\n     String fireplaces;\n     String garageArea;\n     String aboveMedianPrice;\n                  \n}    <\/code><\/pre>\n<\/div>\n<p>See the above static class as a SQL table. Every variable represents a single column in the GridDB container.<\/p>\n<p>We can now connect to GridDB from Java. This is possible provided the authentication process runs successfully. The connection can be done using the following code:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\"> Properties props = new Properties();\n        props.setProperty(\"notificationAddress\", \"239.0.0.1\");\n        props.setProperty(\"notificationPort\", \"31999\");\n        props.setProperty(\"clusterName\", \"defaultCluster\");\n        props.setProperty(\"user\", \"admin\");\n        props.setProperty(\"password\", \"admin\");\n        GridStore store = GridStoreFactory.getInstance().getGridStore(props);<\/code><\/pre>\n<\/div>\n<p>Ensure that you use the correct authentication details depending on your GridDB settings.<\/p>\n<p>Let us now select the container into which the data is to be inserted:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">        Collection&lt;String, Perceptron> coll = store.putCollection(\"col01\", Perceptron.class);<\/code><\/pre>\n<\/div>\n<p>We have created an instance of the container. This instance can now be used to refer to the container.<\/p>\n<p>Let&#8217;s now pull the data from the CSV file and insert it into GridDB:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">File file1 = new File(\"housepricedata.csv\");\n                Scanner sc = new Scanner(file1);\n                String data = sc.next();\n \n                while (sc.hasNext()){\n                    \n                        String scData = sc.next();\n                        String dataList[] = scData.split(\",\");\n                        String lotArea = dataList[0];\n                        String overallQual = dataList[1];\n                        String overallCond = dataList[2];\n                        String totalBsmtSF = dataList[3];\n                        String fullBath = dataList[4];\n                        String halfBath = dataList[5];\n                        String bedroomAbvGr = dataList[6];\n                        String totRmsAbvGrd = dataList[7];\n                        String fireplaces = dataList[8];\n                        String garageArea = dataList[9];\n                        String aboveMedianPrice = dataList[10];\n                        \n                                                              \n                        \n                        Perceptron pc = new Perceptron();\n                        pc.lotArea = Integer.parseInt(lotArea);\n                        pc.overallQual = Integer.parseInt(overallQual);\n                        pc.overallCond = Integer.parseInt(overallCond);\n                        pc.totalBsmtSF = Integer.parseInt(totalBsmtSF);\n                        pc.fullBath = Integer.parseInt(fullBath);\n                        pc.halfBath = Integer.parseInt(halfBath);\n                        pc.bedroomAbvGr = Integer.parseInt(bedroomAbvGr);\n                        pc.totRmsAbvGrd = Integer.parseInt(totRmsAbvGrd);\n                        pc.fireplaces = Integer.parseInt(fireplaces);\n                        pc.garageArea = Integer.parseInt(garageArea);\n                        pc.aboveMedianPrice = Integer.parseInt(aboveMedianPrice);\n                        \n                                               \n                        coll.append(pc);\n                 }<\/code><\/pre>\n<\/div>\n<p>The above code will pull the data from the CSV file and insert it into the GridDB container.<\/p>\n<h2>Retrieve the Data<\/h2>\n<p>We want to use the data to implement a Perceptron neural network model. So, let&#8217;s pull the data from the GridDB container:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">Query&lt;perceptron> query = coll.query(\"select *\");\n   RowSet&lt;\/perceptron>&lt;perceptron> rs = query.fetch(false);\n   RowSet res = query.fetch();&lt;\/perceptron><\/code><\/pre>\n<\/div>\n<p>The <code>select *<\/code> statement helped us to select all the data stored in the GridDB container.<\/p>\n<h2>Fit the Perceptron Neural Network Model<\/h2>\n<p>We can now create a machine learning model using the dataset. Let&#8217;s first import the libraries to be used for this:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">import java.io.BufferedReader;\nimport java.io.FileReader;\nimport weka.core.Instance;\nimport weka.core.Instances;\nimport java.math.BigDecimal;\nimport weka.classifiers.Evaluation;\nimport weka.classifiers.functions.MultilayerPerceptron;<\/code><\/pre>\n<\/div>\n<p>Create a buffered reader for the dataset:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">BufferedReader bufferedReader\n                = new BufferedReader(\n                    new FileReader(res));\n \n            \/\/ Create dataset instances\n            Instances datasetInstances\n                = new Instances(bufferedReader);<\/code><\/pre>\n<\/div>\n<p>Next, we create an instance of the <code>PerceptronNeuralNetwork<\/code> class:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">datasetInstances.setClassIndex(datasetInstances.numAttributes()-1);\n           \/\/Instance of NN\n            PerceptronNeuralNetwork mlp = new PerceptronNeuralNetwork();<\/code><\/pre>\n<\/div>\n<p>Let&#8217;s now set the parameters for the neural network:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">  \/\/Setting Parameters\n           mlp.setLearningRate(0.1);\n           mlp.setMomentum(0.2);\n           mlp.setTrainingTime(2000);\n           mlp.setHiddenLayers(\"3\");<\/code><\/pre>\n<\/div>\n<p>The above code has helped us to set parameters such as the learning rate, momentum, training time, and the number of hidden layers for the model.<\/p>\n<p>Let&#8217;s now build the classifier:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">           mlp.buildClassifier(datasetInstances);<\/code><\/pre>\n<\/div>\n<h2>Evaluate the Model<\/h2>\n<p>Let&#8217;s now evaluate the model to see how it performs. We will use the <code>Evaluation()<\/code> function for this:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\"> Evaluation eval = new Evaluation(datasetInstances);\n           eval.evaluateModel(mlp, datasetInstances);\n           System.out.println(eval.toSummaryString()); \/\/Summary of Training<\/code><\/pre>\n<\/div>\n<p>We can now display the evaluation metrics:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\/\/display metrics\n            System.out.println(\"Correlation: \"+eval.correlationCoefficient());\n            System.out.println(\"Mean Absolute Error: \"+new BigDecimal(eval.meanAbsoluteError()));\n            System.out.println(\"Root Mean Squared Error: \"+eval.rootMeanSquaredError());\n            System.out.println(\"Relative Absolute Error: \"+eval.relativeAbsoluteError()+\"%\");\n            System.out.println(\"Root Relative Squared Error: \"+eval.rootRelativeSquaredError()+\"%\");\n            System.out.println(\"Instances: \"+eval.numInstances());<\/code><\/pre>\n<\/div>\n<h2>Make a Prediction<\/h2>\n<p>Let&#8217;s use the last instance of the dataset to make a prediction. The goal is to know whether the house price is above or below the median price. A result of 1 means the house price is above the median price. A value of 0 means the house price is below the median price.<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">Instance pred = datasetInstances.lastInstance();\n        double answer = mlp.classifyInstance(pred);\n        System.out.println(answer);<\/code><\/pre>\n<\/div>\n<h2>Compile and Run the Model<\/h2>\n<p>To compile and run the model, you will need the Weka API. Download it from the following URL:<\/p>\n<p>http:\/\/www.java2s.com\/Code\/Jar\/w\/weka.htm<\/p>\n<p>Next, login as the <code>gsadm<\/code> user. Move your <code>.java<\/code> file to the <code>bin<\/code> folder of your GridDB located in the following path:<\/p>\n<p>\/griddb_4.6.0-1_amd64\/usr\/griddb-4.6.0\/bin<\/p>\n<p>Run the following command on your Linux terminal to set the path for the gridstore.jar file:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">export CLASSPATH=$CLASSPATH:\/home\/osboxes\/Downloads\/griddb_4.6.0-1_amd64\/usr\/griddb-4.6.0\/bin\/gridstore.jar<\/code><\/pre>\n<\/div>\n<p>Next, use the following command to compile your <code>.java<\/code> file:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">javac -cp weka-3-7-0\/weka.jar PerceptronNeuralNetwork.java<\/code><\/pre>\n<\/div>\n<p>Run the .class file that is generated by running the following command:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">java -cp .:weka-3-7-0\/weka.jar PerceptronNeuralNetwork<\/code><\/pre>\n<\/div>\n<p>The model returned <code>0<\/code> for the prediction. This means that the house price is below the median price.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A multilayer perceptron is made up of many layers of nodes in a directed graph, with every layer being fully connected to the next layer. In this article, we will [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":28731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[121],"tags":[],"class_list":["post-46715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-17T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T20:56:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/08\/perceptron.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1160\" \/>\n\t<meta property=\"og:image:height\" content=\"653\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"Perceptron Neural Network in Java and GridDB\",\"datePublished\":\"2022-08-17T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:56:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\"},\"wordCount\":743,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2022\/08\/perceptron.png\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\",\"name\":\"Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2022\/08\/perceptron.png\",\"datePublished\":\"2022-08-17T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:56:08+00:00\",\"description\":\"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2022\/08\/perceptron.png\",\"contentUrl\":\"\/wp-content\/uploads\/2022\/08\/perceptron.png\",\"width\":1160,\"height\":653},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb.net\/en\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT","description":"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A","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:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/","og_locale":"en_US","og_type":"article","og_title":"Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT","og_description":"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A","og_url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2022-08-17T07:00:00+00:00","article_modified_time":"2025-11-13T20:56:08+00:00","og_image":[{"width":1160,"height":653,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2022\/08\/perceptron.png","type":"image\/png"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"Written by":"griddb-admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#article","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"Perceptron Neural Network in Java and GridDB","datePublished":"2022-08-17T07:00:00+00:00","dateModified":"2025-11-13T20:56:08+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/"},"wordCount":743,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2022\/08\/perceptron.png","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/","name":"Perceptron Neural Network in Java and GridDB | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2022\/08\/perceptron.png","datePublished":"2022-08-17T07:00:00+00:00","dateModified":"2025-11-13T20:56:08+00:00","description":"A multilayer perceptron refers to a feed forward artificial neural network model that maps a set of input data to a set of appropriate outputs. A","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/perceptron-neural-network-in-java-and-griddb\/#primaryimage","url":"\/wp-content\/uploads\/2022\/08\/perceptron.png","contentUrl":"\/wp-content\/uploads\/2022\/08\/perceptron.png","width":1160,"height":653},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb.net\/en\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/posts\/46715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/comments?post=46715"}],"version-history":[{"count":1,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/posts\/46715\/revisions"}],"predecessor-version":[{"id":51387,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/posts\/46715\/revisions\/51387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/media\/28731"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/media?parent=46715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/categories?post=46715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/en\/wp-json\/wp\/v2\/tags?post=46715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}