This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###関数定義-------------------------------------------------- | |
#リストの中から正解率を取り出し平均値を算出、予測値を取り出す | |
procAccPredL <- function(acc_and_pred_list){ | |
acc <- mean(sapply(acc_and_pred_list[seq(1, length(acc_and_pred_list), 2)], sum)) | |
predL <- rbindlist(acc_and_pred_list[seq(2, length(acc_and_pred_list), 2)]) | |
predL <- predL[order(as.integer(predL$rowNo)), ] | |
return(list(acc, predL)) | |
} | |
#meta featureの作成 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# library | |
library(greta) | |
library (bayesplot) | |
library(tidyverse) | |
# data | |
y <- as_data(iris$Sepal.Length) | |
Species <-as.numeric(iris$Species) | |
# variables and priors |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer