吴裕雄--天生自然 pythonTensorFlow自然语言处理:Attention模型--训练
摘要:import tensorflow as tf # 1.参数设置。 # 假设输入数据已经转换成了单词编号的格式。 SRC_TRAIN_DATA = "F:\\TensorFlowGoogle\\201806-github\\TensorFlowGoogleCode\\Chapter09\\train.en" # 源语言输入文件。 TRG_TRAIN_DATA = "F:\\TensorFlowGo
阅读全文
吴裕雄--天生自然 R语言数据分析:火箭发射的地点、日期/时间和结果分析
摘要:dfS = read.csv("F:\\kaggleDataSet\\spacex-missions\\database.csv") library(dplyr) library(tidyr) library(data.table) library(sqldf) library(highcharter) library(ggrepel) library(leaflet) library(v...
阅读全文
吴裕雄--天生自然 R数据分析:2014年美国人时间使用调查(ATUS)饮食与健康模块文件分析
摘要:# libraries we'll need library(car) # for avplots library(tidyverse) # for general utility functions # read in our data bmi_data % filter(erbmi > 0) # remove rows where the reported BMI is les...
阅读全文
吴裕雄--天生自然 R语言开发学习:模块\包的安装命令
摘要:install.packages('模块包名称') 或者 install.packages('模块包名称',repos='http://cran.us.r-project.org')
阅读全文
吴裕雄--天生自然 R语言数据可视化绘图(4)
摘要:par(ask=TRUE) # Basic scatterplot library(ggplot2) ggplot(data=mtcars, aes(x=wt, y=mpg)) + geom_point() + labs(title="Automobile Data", x="Weight", y="Miles Per Gallon") # Scatter plot with a...
阅读全文
吴裕雄--天生自然 R语言数据可视化绘图(3)
摘要:par(ask=TRUE) opar <- par(no.readonly=TRUE) # record current settings # Listing 11.1 - A scatter plot with best fit lines attach(mtcars) plot(wt,...
阅读全文
吴裕雄--天生自然 R语言数据可视化绘图(2)
摘要:# Listing 6.1 - Simple bar plot# vertical barplotbarplot(counts, main="Simple Bar Plot", xlab="Improvement", ylab="Frequency")# horizontal bar plot ba
阅读全文
吴裕雄--天生自然 R语言数据可视化绘图(1)
摘要:par(ask=TRUE) opar <- par(no.readonly=TRUE) # make a copy of current settings attach(mtcars) # be sure to execute this line plot(wt, mpg) abline(lm(mpg~wt)) title("Regression of MPG on Weight") ...
阅读全文
吴裕雄--天生自然 R语言开发学习:高级编程
摘要:运行的条件是一元逻辑向量(TRUE或FALSE)并且不能有缺失(NA)。else部分是可选的。如果 13 仅有一个语句,花括号也是可以省略的。 下面的代码片段是一个例子: if(interactive()){ 14 plot(x, y) } else { png("myplot.png") plot(x, y) dev.off() 15 }...
阅读全文
吴裕雄--天生自然 R语言开发学习:使用ggplot2进行高级绘图(续二)
摘要:#----------------------------------------------------------# # R in Action (2nd ed): Chapter 19 # # Advanced graphics with ggplot2 #...
阅读全文
吴裕雄--天生自然 R语言开发学习:使用ggplot2进行高级绘图(续一)
摘要:#----------------------------------------------------------# # R in Action (2nd ed): Chapter 19 # # Advanced graphics with ggplot2 #...
阅读全文
吴裕雄--天生自然 R语言开发学习:使用ggplot2进行高级绘图
摘要:#----------------------------------------------------------# # R in Action (2nd ed): Chapter 19 # # Advanced graphics with ggplot2 ...
阅读全文
吴裕雄--天生自然 R语言开发学习:处理缺失数据的高级方法(续一)
摘要:#-----------------------------------# # R in Action (2nd ed): Chapter 18 # # Advanced methods for missing data # # requires packages VIM, mice # # install.packages(c("VIM", mice)) # #---...
阅读全文
吴裕雄--天生自然 R语言开发学习:处理缺失数据的高级方法
摘要:#-----------------------------------# # R in Action (2nd ed): Chapter 18 # # Advanced methods for missing data # # requires packages VIM, mice # # install.packa...
阅读全文
吴裕雄--天生自然 R语言开发学习:分类(续二)
摘要:#-----------------------------------------------------------------------------# # R in Action (2nd ed): Chapter 17 # # Classification ...
阅读全文
吴裕雄--天生自然 R语言开发学习:分类(续一)
摘要:#-----------------------------------------------------------------------------# # R in Action (2nd ed): Chapter 17 # # Classification ...
阅读全文
吴裕雄--天生自然 R语言开发学习:分类
摘要:#-----------------------------------------------------------------------------# # R in Action (2nd ed): Chapter 17 # # Classification ...
阅读全文
吴裕雄--天生自然 R语言开发学习:聚类分析(续一)
摘要:#-------------------------------------------------------# # R in Action (2nd ed): Chapter 16 # # Cluster analysis # # ...
阅读全文