전체 글
-
MNIST 데이터 분석하기R/Keras 2018. 8. 8. 11:25
이것을 하기 위해서는 1. Anaconda를 설치 2. 관련 설정을 해야 한다. 그런 다음에 다음의 코드를 실행하면 된다.# Keras with R install.packages("devtools") install.packages("yaml") install.packages("tensorflow") install.packages("keras") install.packages("reticulate") library(devtools) library(yaml) library(tensorflow) tensorflow::install_tensorflow(version = "gpu") library(keras) library(reticulate) # Import Data mnist
-
-
-
model카테고리 없음 2018. 8. 3. 15:03
ggplot2 패키지에서 제공하는 diamonds 데이터의 cut과 price, cut과 carat, carat과 price 강한 관계가 있다. 이러한 강력한 관계를 제거하기 위하여 다음과 같이 model를 사용할 수 있다. install.packages("tidyverse") install.packages("modelr") library(tidyverse) library(modelr) # 모형 diamonds.model % modelr::add_residuals(diamonds.model) %>% dplyr::mutate(resid = exp(resid)) %>% ggplot2::ggplot(mapping = aes(x = carat, y = resid)) + geom_point() # 상자그림 dia..
-
PatternsR 2018. 8. 3. 14:37
Patterns Q. Could this pattern be due to coincidence(i.e., random chance)?Q. How can you describe the relationship implied by the pattern?Q. How strong is the relationship implied by the pattern?Q. What other variables might affect the relationship?Q. Does the relationship change if you look at individual subgroups of the data? [출처] R for Data Science, Hadley Wickham & Garrett Grolemund, O'REILL..