任何人都有一个简短的教育示例如何使用神经网络(R中的nnet)进行预测?以下是R中的时间序列示例
T = seq(0,20,length=200)
Y = 1 + 3*cos(4*T+2) +.2*T^2 + rnorm(200)
plot(T,Y,type="l")
Run Code Online (Sandbox Code Playgroud)
非常感谢
大卫
我需要身份验证才能使用互联网,这些是我的变量:
如何在R及其插件包中安装软件包? 这样以下方法可行:
install.packages("TSA", dependencies=TRUE)
Run Code Online (Sandbox Code Playgroud)
没有我们的互联网连接故障?
我试过这个:
Sys.setenv("ftp_proxy" = "1ncproxy1","ftp_proxy_user"="MyLoGiN","ftp_proxy_password"="MyPaSs")#Port = 80
Run Code Online (Sandbox Code Playgroud)
但我得到:
Warning: unable to access index for repository http://cran.ma.imperial.ac.uk/src/contrib
# or
cannot open: HTTP status was '407 Proxy Authentication Required'
Run Code Online (Sandbox Code Playgroud)
非常感谢,
我习惯于R提供快速功能来逐列读取CSV文件,任何人都可以提出一种快速有效的方法来读取python中的大数据(例如CSV)文件吗?例如,CSV文件的第 i 列.
我有以下但需要时间:
import os,csv, numpy, scipy
from numpy import *
f= open('some.csv', 'rb')
reader = csv.reader(f, delimiter=',')
header = reader.next()
zipped = zip(*reader)
print( zipped[0] ) # is the first column
Run Code Online (Sandbox Code Playgroud)
有没有更好的方法来读取python中的数据(来自大文件)(在内存方面至少和R一样快)?