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(prophet) | |
library(tidyverse) | |
#データ読み込み | |
#ブログのユーザー数のアクセスログ | |
df <-read.csv("s_ogawa_blog_access.csv", skip = 13, stringsAsFactors = FALSE) | |
#変数名・型調整 |
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
#------------------------------------------------------ | |
# bayesian linear model | |
#------------------------------------------------------ | |
blm <- function(formula, data, lambda){ | |
#model | |
mm <- model.matrix(formula, data) #design matrix | |
y <- model.response(model.frame(formula, data)) #response variable | |
#hyper parameter | |
Lambda <- diag(ncol(mm)) |
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.
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
FROM centos:6 | |
#print doing command | |
RUN set -x | |
#install utility command | |
RUN yum -y install epel-release && \ | |
yum install -y wget && \ | |
yum install -y sudo |
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(boot) | |
library(ggplot2) | |
library(tidyverse) | |
library(bayesboot) | |
library(simpleboot) | |
#関数 | |
#正解率計算 | |
calc_acc <- function(x, true){ |
NewerOlder