{"id":50783,"date":"2022-02-19T00:00:00","date_gmt":"2022-02-19T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/"},"modified":"2025-11-14T07:55:10","modified_gmt":"2025-11-14T15:55:10","slug":"logistic-regression-algorithm-in-java","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/","title":{"rendered":"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u56de\u5e30\u5206\u6790\u306b\u306f\u69d8\u3005\u306a\u624b\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u306f\u3001\u30c7\u30fc\u30bf\u96c6\u5408\u306e\u4e2d\u306b\u8907\u6570\u306e\u72ec\u7acb\u5909\u6570\u304c\u3042\u308b\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u624b\u6cd5\u306f\u3001\u6a19\u672c\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u3068\u6700\u5c24\u63a8\u5b9a\u5024\u304c\u901a\u5e38\u306e\u6700\u5c0f2\u4e57\u6cd5\u3088\u308a\u3082\u5c0f\u3055\u304f\u306a\u308b\u305f\u3081\u3001\u5927\u304d\u306a\u6a19\u672c\u30b5\u30a4\u30ba\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001Java\u3068GridDB\u3092\u4f7f\u3063\u3066\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u76ee\u6a19\u306f\u3001\u6c17\u8c61\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u904a\u3079\u308b\u304b\u3069\u3046\u304b\u3092\u4e88\u6e2c\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>GridDB\u306b\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b<\/h2>\n<p>\u30c7\u30fc\u30bf\u306f &#8220;play.csv &#8220;\u3068\u3044\u3046CSV\u30d5\u30a1\u30a4\u30eb\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f\u30014\u3064\u306e\u72ec\u7acb\u5909\u6570\uff08outlook, temperature, humidity, windy\uff09\u3068\u30011\u3064\u306e\u5f93\u5c5e\u5909\u6570\uff08play\uff09\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092GridDB\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u306a\u3069\u306e\u69d8\u3005\u306a\u6069\u6075\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u3053\u306e\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">import java.io.IOException;\nimport java.util.Collection;\nimport java.util.Properties;\nimport java.util.Scanner;\nimport java.io.File;\n\nimport com.toshiba.mwcloud.gs.Collection;\nimport com.toshiba.mwcloud.gs.GSException;\nimport com.toshiba.mwcloud.gs.GridStore;\nimport com.toshiba.mwcloud.gs.GridStoreFactory;\nimport com.toshiba.mwcloud.gs.Query;\nimport com.toshiba.mwcloud.gs.RowKey;\nimport com.toshiba.mwcloud.gs.RowSet;<\/code><\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u4f7f\u7528\u3059\u308b GridDB \u30b3\u30f3\u30c6\u30ca\u3092\u8868\u3059\u9759\u7684\u306a Java \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">public static class Weather {\n     @RowKey String outlook;\n     String temperature; \n     String humidity;\n     String windy;\n     String play;\n}  <\/code><\/pre>\n<\/div>\n<p>\u4e0a\u306e\u30af\u30e9\u30b9\u30925\u3064\u306e\u30ab\u30e9\u30e0\u3092\u6301\u3064SQL\u30c6\u30fc\u30d6\u30eb\u3068\u898b\u306a\u3057\u3066\u304f\u3060\u3055\u3044\u30025\u3064\u306e\u5909\u6570\u306f\u3001\u5358\u306bGridDB\u30b3\u30f3\u30c6\u30ca\u306e\u30ab\u30e9\u30e0\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001Java \u304b\u3089 GridDB \u30b3\u30f3\u30c6\u30ca\u306b\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u304c\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\n        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>\u4f7f\u7528\u3059\u308bGridDB\u30b3\u30f3\u30c6\u30ca\u306f <code>Weather<\/code> \u3068\u3044\u3046\u540d\u524d\u3067\u3059\u3002\u305d\u308c\u3092\u9078\u629e\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">Collection&lt;String, Weather> coll = store.putCollection(\"col01\", Weather.class);<\/code><\/pre>\n<\/div>\n<p><code>Weather<\/code> \u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u3068\u3057\u3066 <code>coll<\/code> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001<code>play.csv<\/code> \u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001GridDB \u30b3\u30f3\u30c6\u30ca\u306b\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\n                File file1 = new File(\"play.csv\");\n                Scanner sc = new Scanner(file1);\n                String data = sc.next();\n \n                while (sc.hasNext()){\n                        String scData = sc.next();\n                        String dataList[] = scData.split(\",\");\n                        String outlook = dataList[0];\n                        String temperature = dataList[1];\n                        String humidity = dataList[2];\n                        String windy = dataList[3];\n                        String play = dataList[4];\n                        \n                        Weather wt = new Weather();\n                        wt.outlook = outlook;\n                        wt.temperature = temperature;\n                        wt.humidity = humidity;\n                        wt.windy = windy;\n                        wt.play = play;\n                        \n                        coll.append(wt);\n                }<\/code><\/pre>\n<\/div>\n<h2>\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001GridDB\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\n                Query query = coll.query(\"select *\");\n                RowSet rs = query.fetch(false);\n                RowSet res = query.fetch();<\/code><\/pre>\n<\/div>\n<p><code>select *<\/code>\u30af\u30a8\u30ea\u306b\u3088\u308a\u3001GridDB\u30b3\u30f3\u30c6\u30ca\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u5168\u3066\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u5b9f\u88c5<\/h2>\n<p>\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30e2\u30c7\u30eb\u306e\u76ee\u7684\u306f\u3001\u5929\u6c17\u306b\u3088\u3063\u3066\u904a\u3079\u308b\u304b\u904a\u3079\u306a\u3044\u304b\u3092\u5224\u65ad\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30e2\u30c7\u30eb\u306e\u5b9f\u88c5\u306b\u5f79\u7acb\u3064\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">import java.io.IOException;\n\nimport weka.classifiers.Evaluation;\nimport weka.classifiers.Classifier;\nimport weka.core.Instance;\nimport weka.core.Instances;\nimport weka.core.converters.ArffLoader; \n\nimport java.io.BufferedReader;\nimport java.io.FileReader;<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u7528\u306e\u30d0\u30c3\u30d5\u30a1\u30fc\u30c9\u30ea\u30fc\u30c0\u30fc\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\n            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>Weka API \u306e <code>Logistic()<\/code> \u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">datasetInstances.setClassIndex(datasetInstances.numAttributes()-1);\n\nClassifier classifier = new weka.classifiers.functions.Logistic();\n\nclassifier.buildClassifier(datasetInstances);\nSystem.out.println(classifier);<\/code><\/pre>\n<\/div>\n<h2>\u4e88\u6e2c\u3092\u3059\u308b<\/h2>\n<p>\u4e0a\u8a18\u306e\u30e2\u30c7\u30eb\u3092\u4f7f\u3063\u3066\u3001\u4e88\u6e2c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306b\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6700\u5f8c\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f7f\u3063\u3066\u4e88\u6e2c\u3092\u884c\u3046\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">\n        Instance pred = datasetInstances.lastInstance();\n        double answer = classifier.classifyInstance(pred);\n        System.out.println(answer);<\/code><\/pre>\n<\/div>\n<h2>\u30e2\u30c7\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u5b9f\u884c<\/h2>\n<p>\u30e2\u30c7\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001Weka API \u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306eURL\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>http:\/\/www.java2s.com\/Code\/Jar\/w\/weka.htm<\/p>\n<p>\u6b21\u306b\u3001<code>gsadm<\/code> \u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f <code>.java<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u3042\u308bGridDB\u306e <code>bin<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\/griddb_4.6.0-1_amd64\/usr\/griddb-4.6.0\/bin<\/p>\n<p>Linux\u7aef\u672b\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001gridstore.jar\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/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>\u6b21\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 <code>.java<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">javac -cp weka-3-7-0\/weka.jar WeatherPlay.java<\/code><\/pre>\n<\/div>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u751f\u6210\u3055\u308c\u305f .class \u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">java -cp .:weka-3-7-0\/weka.jar WeatherPlay<\/code><\/pre>\n<\/div>\n<p>\u30e2\u30c7\u30eb\u306f\u4e88\u6e2c\u5024\u3068\u3057\u3066\u300c1.0\u300d\u3092\u8fd4\u3057\u3001\u3053\u308c\u306f\u904a\u3079\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002 \u56de\u5e30\u5206\u6790\u306b\u306f\u69d8\u3005\u306a\u624b\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49360,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\" \/>\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.net\/ja\/\u672a\u5206\u985e\/logistic-regression-algorithm-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/logistic-regression-algorithm-in-java\/\" \/>\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-02-19T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/01\/logistic.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=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\",\"datePublished\":\"2022-02-19T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/\"},\"wordCount\":49,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2022\/01\/logistic.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/\",\"name\":\"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2022\/01\/logistic.png\",\"datePublished\":\"2022-02-19T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:10+00:00\",\"description\":\"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2022\/01\/logistic.png\",\"contentUrl\":\"\/wp-content\/uploads\/2022\/01\/logistic.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\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@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\":\"ja\",\"@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\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002","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.net\/ja\/\u672a\u5206\u985e\/logistic-regression-algorithm-in-java\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/logistic-regression-algorithm-in-java\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2022-02-19T08:00:00+00:00","article_modified_time":"2025-11-14T15:55:10+00:00","og_image":[{"width":1160,"height":653,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2022\/01\/logistic.png","type":"image\/png"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","datePublished":"2022-02-19T08:00:00+00:00","dateModified":"2025-11-14T15:55:10+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/"},"wordCount":49,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2022\/01\/logistic.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/","name":"Java\u306b\u3088\u308b\u30ed\u30b8\u30b9\u30c6\u30a3\u30c3\u30af\u56de\u5e30\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2022\/01\/logistic.png","datePublished":"2022-02-19T08:00:00+00:00","dateModified":"2025-11-14T15:55:10+00:00","description":"\u306f\u3058\u3081\u306b \u56de\u5e30\u5206\u6790\u3068\u306f\u3001\u4e88\u6e2c\u76ee\u7684\u3067\u5f93\u5c5e\u5909\u6570\u3068\u72ec\u7acb\u5909\u6570\u306e\u95a2\u4fc2\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u5206\u6790\u306b\u6709\u52b9\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/logistic-regression-algorithm-in-java\/#primaryimage","url":"\/wp-content\/uploads\/2022\/01\/logistic.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/logistic.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":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@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":"ja","@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\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50783"}],"version-history":[{"count":1,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50783\/revisions"}],"predecessor-version":[{"id":51616,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50783\/revisions\/51616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/49360"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}