{"id":4502,"date":"2023-07-10T13:36:46","date_gmt":"2023-07-10T13:36:46","guid":{"rendered":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/"},"modified":"2023-07-10T13:36:46","modified_gmt":"2023-07-10T13:36:46","slug":"%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/","title":{"rendered":"A: traincontrol \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u304c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u3069\u306e\u7a0b\u5ea6\u9069\u5408\u3067\u304d\u308b\u304b\u3092\u8a55\u4fa1\u3059\u308b\u306b\u306f\u3001\u3053\u308c\u307e\u3067\u306b\u898b\u305f\u3053\u3068\u306e\u306a\u3044\u89b3\u6e2c\u7d50\u679c\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5206\u6790\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306e 1 \u3064\u306f\u3001\u6b21\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u7528\u3059\u308b<a href=\"https:\/\/statorials.org\/ja\/k-\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\/\" target=\"_blank\" rel=\"noopener noreferrer\">k \u5206\u5272\u76f8\u4e92\u691c\u8a3c\u3092<\/a>\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u307b\u307c\u540c\u3058\u30b5\u30a4\u30ba\u306e<em>k<\/em>\u30b0\u30eb\u30fc\u30d7\u3001\u3064\u307e\u308a\u300c\u5206\u5272\u300d\u306b\u30e9\u30f3\u30c0\u30e0\u306b\u5206\u5272\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong>\u3072\u3060\u306e 1 \u3064\u3092\u62d8\u675f\u30bb\u30c3\u30c8\u3068\u3057\u3066\u9078\u629e\u3057\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6b8b\u308a\u306e k-1 \u500b\u306e\u6298\u308a\u76ee\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u307e\u3059\u3002\u5f35\u529b\u304c\u304b\u304b\u3063\u305f\u5c64\u306e\u89b3\u5bdf\u7d50\u679c\u306b\u57fa\u3065\u3044\u3066 MSE \u30c6\u30b9\u30c8\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong>\u6bce\u56de\u7570\u306a\u308b\u30bb\u30c3\u30c8\u3092\u9664\u5916\u30bb\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092<em>k<\/em>\u56de\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>4.<\/strong> <em>k \u500b<\/em>\u306e\u30c6\u30b9\u30c8 MSE \u306e\u5e73\u5747\u3068\u3057\u3066\u5168\u4f53\u306e\u30c6\u30b9\u30c8 MSE \u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\">R \u3067 k \u5206\u5272\u76f8\u4e92\u691c\u8a3c\u3092\u5b9f\u884c\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001R \u306e<strong>\u30ad\u30e3\u30ec\u30c3\u30c8<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<strong>trainControl()<\/strong>\u95a2\u6570\u3068<strong>train()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>trainControl()<\/strong>\u95a2\u6570\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc (\u4f7f\u7528\u3059\u308b\u76f8\u4e92\u691c\u8a3c\u306e\u7a2e\u985e\u3001\u4f7f\u7528\u3059\u308b\u5206\u5272\u6570\u306a\u3069) \u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001 <strong>train()<\/strong>\u95a2\u6570\u306f\u5b9f\u969b\u306b\u30e2\u30c7\u30eb\u3092\u30c7\u30fc\u30bf\u306b\u9069\u5408\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u4f8b\u306f\u3001 <strong>trainControl()<\/strong>\u95a2\u6570\u3068<strong>train()<\/strong>\u95a2\u6570\u3092\u5b9f\u969b\u306b\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u4f8b: R \u3067 trainControl() \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">R \u306b\u6b21\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame<\/span>\ndf &lt;- data.frame(y=c(6, 8, 12, 14, 14, 15, 17, 22, 24, 23),\n                 x1=c(2, 5, 4, 3, 4, 6, 7, 5, 8, 9),\n                 x2=c(14, 12, 12, 13, 7, 8, 7, 4, 6, 5))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\ny x1 x2\n6 2 14\n8 5 12\n12 4 12\n14 3 13\n14 4 7\n15 6 8\n17 7 7\n22 5 4\n24 8 6\n23 9 5\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u3053\u3053\u3067\u3001 <a href=\"https:\/\/statorials.org\/ja\/r\u306elm\u95a2\u6570\/\" target=\"_blank\" rel=\"noopener\">lm()<\/a>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001 <strong>x1<\/strong>\u3068<strong>x2<\/strong>\u3092\u4e88\u6e2c\u5909\u6570\u3068\u3057\u3066\u3001 <strong>y<\/strong>\u3092\u5fdc\u7b54\u5909\u6570\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001<a href=\"https:\/\/statorials.org\/ja\/\u91cd\u7dda\u5f62\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener\">\u91cd\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u3092<\/a>\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u8fd1\u4f3c\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#fit multiple linear regression model to data<\/span>\nfit &lt;- lm(y ~ x1 + x2, data=df)\n\n<span style=\"color: #008080;\">#view model summary\n<\/span>summary(fit)\n\nCall:\nlm(formula = y ~ x1 + x2, data = df)\n\nResiduals:\n    Min 1Q Median 3Q Max \n-3.6650 -1.9228 -0.3684 1.2783 5.0208 \n\nCoefficients:\n            Estimate Std. Error t value Pr(&gt;|t|)  \n(Intercept) 21.2672 6.9927 3.041 0.0188 *\nx1 0.7803 0.6942 1.124 0.2981  \nx2 -1.1253 0.4251 -2.647 0.0331 *\n---\nSignificant. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1\n\nResidual standard error: 3.093 on 7 degrees of freedom\nMultiple R-squared: 0.801, Adjusted R-squared: 0.7441 \nF-statistic: 14.09 on 2 and 7 DF, p-value: 0.003516\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u51fa\u529b\u306e\u4fc2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u8fd1\u4f3c\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>y = 21.2672 + 0.7803*(x <sub>1<\/sub> ) \u2013 1.1253(x <sub>2<\/sub> )<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30e2\u30c7\u30eb\u304c\u76ee\u306b\u898b\u3048\u306a\u3044<a href=\"https:\/\/statorials.org\/ja\/\u7d71\u8a08\u306b\u304a\u3051\u308b\u89b3\u5bdf\/\" target=\"_blank\" rel=\"noopener\">\u89b3\u6e2c<\/a>\u306b\u5bfe\u3057\u3066\u3069\u306e\u7a0b\u5ea6\u3046\u307e\u304f\u6a5f\u80fd\u3059\u308b\u304b\u3092\u77e5\u308b\u305f\u3081\u306b\u3001k \u5206\u5272\u76f8\u4e92\u691c\u8a3c\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001<strong>\u30ad\u30e3\u30ec\u30c3\u30c8<\/strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e<strong>trainControl()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30015 \u5206\u5272 ( <strong>number=5<\/strong> ) \u3092\u4f7f\u7528\u3059\u308b k \u5206\u5272\u76f8\u4e92\u691c\u8a3c ( <strong>method=&#8221;cv&#8221;<\/strong> ) \u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306b\u3001\u3053\u306e<strong>trainControl()<\/strong>\u95a2\u6570\u3092<strong>train()<\/strong>\u95a2\u6570\u306b\u6e21\u3057\u3066\u3001\u5b9f\u969b\u306b k \u5206\u5272\u76f8\u4e92\u691c\u8a3c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (caret)<\/span>\n\n#specify the cross-validation method<\/span>\nctrl &lt;- trainControl(method = \" <span style=\"color: #ff0000;\">cv<\/span> \", number = <span style=\"color: #008000;\">5<\/span> )\n\n<span style=\"color: #008080;\">#fit a regression model and use k-fold CV to evaluate performance\n<\/span>model &lt;- train(y ~ x1 + x2, data = df, method = \" <span style=\"color: #ff0000;\">lm<\/span> \", trControl = ctrl)\n\n<span style=\"color: #008080;\">#view summary of k-fold CV               \n<\/span><span style=\"color: #008000;\">print<\/span> (model)\n\nLinear Regression \n\n10 samples\n 2 predictors\n\nNo pre-processing\nResampling: Cross-Validated (5 fold) \nSummary of sample sizes: 8, 8, 8, 8, 8 \nResampling results:\n\n  RMSE Rsquared MAE     \n  3.612302 1 3.232153\n\nTuning parameter 'intercept' was held constant at a value of TRUE\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u7d50\u679c\u304b\u3089\u3001\u6bce\u56de<strong>8 \u3064\u306e<\/strong>\u89b3\u6e2c\u5024\u306e\u30b5\u30f3\u30d7\u30eb \u30b5\u30a4\u30ba\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u304c<strong>5<\/strong>\u56de\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6bce\u56de\u3001\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066<strong>2 \u3064<\/strong>\u306e\u4fdd\u6301\u3055\u308c\u305f\u89b3\u6e2c\u5024\u306e\u4e88\u6e2c\u304c\u884c\u308f\u308c\u3001\u6bce\u56de\u6b21\u306e\u6307\u6a19\u304c\u8a08\u7b97\u3055\u308c\u307e\u3057\u305f\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>RMSE:<\/strong>\u4e8c\u4e57\u5e73\u5747\u5e73\u65b9\u6839\u8aa4\u5dee\u3002\u3053\u308c\u306f\u3001\u30e2\u30c7\u30eb\u306b\u3088\u3063\u3066\u884c\u308f\u308c\u305f\u4e88\u6e2c\u3068\u5b9f\u969b\u306e\u89b3\u6e2c\u5024\u306e\u9593\u306e\u5e73\u5747\u5dee\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002 RMSE \u304c\u4f4e\u3044\u307b\u3069\u3001\u30e2\u30c7\u30eb\u306f\u5b9f\u969b\u306e\u89b3\u6e2c\u5024\u3092\u3088\u308a\u6b63\u78ba\u306b\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>MAE:<\/strong>\u5e73\u5747\u7d76\u5bfe\u8aa4\u5dee\u3002\u3053\u308c\u306f\u3001\u30e2\u30c7\u30eb\u306b\u3088\u3063\u3066\u884c\u308f\u308c\u305f\u4e88\u6e2c\u3068\u5b9f\u969b\u306e\u89b3\u6e2c\u5024\u306e\u9593\u306e\u5e73\u5747\u7d76\u5bfe\u5dee\u3067\u3059\u3002 MAE \u304c\u4f4e\u3044\u307b\u3069\u3001\u30e2\u30c7\u30eb\u306f\u5b9f\u969b\u306e\u89b3\u6e2c\u3092\u3088\u308a\u6b63\u78ba\u306b\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">5 \u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e RMSE \u5024\u3068 MAE \u5024\u306e\u5e73\u5747\u304c\u7d50\u679c\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">RMSE: <strong>3.612302<\/strong><\/span><\/li>\n<li><span style=\"color: #000000;\">\u524d\u6708: <strong>3.232153<\/strong><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u30e2\u30c7\u30eb\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5b9f\u969b\u306b\u306f\u3001\u901a\u5e38\u3001\u3044\u304f\u3064\u304b\u306e\u7570\u306a\u308b\u30e2\u30c7\u30eb\u3092\u9069\u5408\u3055\u305b\u3001\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u6bd4\u8f03\u3057\u3066\u3001\u76ee\u306b\u898b\u3048\u306a\u3044\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u3069\u306e\u30e2\u30c7\u30eb\u304c\u6700\u3082\u512a\u308c\u305f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u767a\u63ee\u3059\u308b\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u305f\u3068\u3048\u3070\u3001 <a href=\"https:\/\/statorials.org\/ja\/\u591a\u9805\u5f0f\u56de\u5e30\u3092\u3044\u3064\u4f7f\u7528\u3059\u308b\u304b\/\" target=\"_blank\" rel=\"noopener\">\u591a\u9805\u5f0f\u56de\u5e30\u30e2\u30c7\u30eb\u3092<\/a>\u8fd1\u4f3c\u3057\u3001\u305d\u308c\u306b\u5bfe\u3057\u3066 K \u5206\u5272\u4ea4\u5dee\u691c\u8a3c\u3092\u5b9f\u884c\u3057\u3066\u3001RMSE \u304a\u3088\u3073 MAE \u30e1\u30c8\u30ea\u30af\u30b9\u304c\u91cd\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u3068\u3069\u306e\u3088\u3046\u306b\u6bd4\u8f03\u3055\u308c\u308b\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u6ce8 #1:<\/strong>\u3053\u306e\u4f8b\u3067\u306f\u3001k=5 \u306e\u6298\u308a\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3057\u307e\u3059\u304c\u3001\u5fc5\u8981\u306a\u6298\u308a\u306e\u6570\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3001\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30c6\u30b9\u30c8\u30a8\u30e9\u30fc\u7387\u3092\u751f\u307f\u51fa\u3059\u6700\u9069\u306a\u5c64\u6570\u3067\u3042\u308b\u3053\u3068\u304c\u8a3c\u660e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u901a\u5e38\u306f 5 \uff5e 10 \u5c64\u306e\u9593\u3067\u9078\u629e\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u6ce8 #2<\/strong> : <strong>trainControl()<\/strong>\u95a2\u6570\u306f\u3001\u591a\u304f\u306e\u6f5c\u5728\u7684\u306a\u5f15\u6570\u3092\u53d7\u3051\u5165\u308c\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306e\u5b8c\u5168\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f<a href=\"https:\/\/search.r-project.org\/CRAN\/refmans\/caret\/html\/trainControl.html\" target=\"_blank\" rel=\"noopener\">\u3053\u3053\u3067<\/a>\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u8ffd\u52a0\u30ea\u30bd\u30fc\u30b9<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u95a2\u3059\u308b\u8ffd\u52a0\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/ja\/k-\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\/\" target=\"_blank\" rel=\"noopener\">K-Fold \u76f8\u4e92\u691c\u8a3c\u306e\u6982\u8981<\/a><br \/><a href=\"https:\/\/statorials.org\/ja\/\u5358\u4e00\u306e\u76f8\u4e92\u691c\u8a3c\u3092\u6b8b\u3059\/\" target=\"_blank\" rel=\"noopener\">Leave-One-Out \u76f8\u4e92\u691c\u8a3c\u306e\u6982\u8981<\/a><br \/><a href=\"https:\/\/statorials.org\/ja\/\u6a5f\u68b0\u5b66\u7fd2\u306e\u904e\u5b66\u7fd2\/\" target=\"_blank\" rel=\"noopener\">\u6a5f\u68b0\u5b66\u7fd2\u306b\u304a\u3051\u308b\u904e\u5b66\u7fd2\u3068\u306f\u4f55\u3067\u3059\u304b?<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e2\u30c7\u30eb\u304c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u3069\u306e\u7a0b\u5ea6\u9069\u5408\u3067\u304d\u308b\u304b\u3092\u8a55\u4fa1\u3059\u308b\u306b\u306f\u3001\u3053\u308c\u307e\u3067\u306b\u898b\u305f\u3053\u3068\u306e\u306a\u3044\u89b3\u6e2c\u7d50\u679c\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5206\u6790\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306e 1 \u3064\u306f\u3001\u6b21\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u7528\u3059\u308bk \u5206\u5272\u76f8\u4e92\u691c\u8a3c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-4502","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\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:\/\/statorials.org\/ja\/\u30c8\u30ec\u30a4\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30ebr\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/\u30c8\u30ec\u30a4\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30ebr\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T13:36:46+00:00\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/\",\"url\":\"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/\",\"name\":\"A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-10T13:36:46+00:00\",\"dateModified\":\"2023-07-10T13:36:46+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A: traincontrol \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\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:\/\/statorials.org\/ja\/\u30c8\u30ec\u30a4\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30ebr\/","og_locale":"ja_JP","og_type":"article","og_title":"A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/\u30c8\u30ec\u30a4\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30ebr\/","og_site_name":"Statorials","article_published_time":"2023-07-10T13:36:46+00:00","author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/","url":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/","name":"A: trainControl \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-10T13:36:46+00:00","dateModified":"2023-07-10T13:36:46+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067 traincontrol() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u3092\u6319\u3052\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/%e3%83%88%e3%83%ac%e3%82%a4%e3%83%b3%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%abr\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"A: traincontrol \u3092\u4f7f\u7528\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/4502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=4502"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/4502\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=4502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=4502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=4502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}