03 2019 档案
摘要:object type randomForest 会根据变量的类型来决定 或`classification class(iris$Species) classification`。 iris example data(iris) set.seed(111) ind
阅读全文
摘要:object type randomForest 会根据变量的类型来决定regression或classification。class(iris$Species)是 factor,所以是classification。 iris.rf$type[1] "...
阅读全文
摘要:library("reticulate")use_python("/usr/bin/python", required = T)py_config() 注意 1 每开启一个session,第一次设置生效,之后再使用这个命令不生效,需要重启session...
阅读全文
摘要:注意 1 每开启一个session,第一次设置生效,之后再使用这个命令不生效,需要重启session 2 命令要放在最后,使设置生效
阅读全文
摘要:同时安装多个库 Pkg.add.(["IJulia", "Combinatorics", "Plots", "TaylorSeries"]) 设置并行线程数 export JULIA_NUM_THREADS=4 #The number of thre...
阅读全文
摘要:// Convenience wrapper around predict for models with // single tensor outputs of shape (1, 1, 1), // typically used f...
阅读全文
摘要:convert tensor5 datatype to std::vector
阅读全文
摘要:Model Extract layers Feed forward calculation
阅读全文
摘要:Model NeuralNet( (l0): Linear(in_features=6, out_features=256, bias=True) (relu): ReLU() (bn0): BatchNorm1d(256, eps=1e-05, ...
阅读全文
摘要:https://github.com/keras-team/keras/issues/1523
阅读全文
摘要:https://github.com/keras team/keras/issues/1523
阅读全文
摘要:If you are going to compile a C program with pthread.h in LINUX using GCC or G++ you will have to use –lpthread option after the compile command. gcc
阅读全文
摘要:If you are going to compile a C program with pthread.h in LINUX using GCC or G++ you will have to use –lpthread option after the...
阅读全文
摘要:#include#includeint D=5;int M=4;int main(){ arma::fmat x; x.randn(D,1); arma::fmat A; A.randn(M,D); std::cout<<"x= \n"<<x<<std::...
阅读全文
摘要:``` include include int D=5; int M=4; int main() { arma::fmat x; x.randn(D,1); arma::fmat A; A.randn(M,D); std::cout
阅读全文
摘要:安装完 之后,系统中默认的编译器不再是 系列,编译一些库的时候经常产生问题。 在 变量中设置 ,把 ,`g++ c++ cc Gcc`系列。
阅读全文
摘要:安装完Xcode之后,系统中默认的编译器不再是Gcc系列,编译一些库的时候经常产生问题。 在PATH变量中设置symbol link,把gcc,g++,c++,cc全链接到Gcc系列。
阅读全文
摘要:{ "cmd" : ["g++ -std=c++14 -Wall -larmadillo -framework Accelerate ${file_name} -o ${file_base_name} && ./${file_base_name}"], ...
阅读全文
摘要:```
{ "cmd" : ["g++ -std=c++14 -Wall -larmadillo -framework Accelerate ${file_name} -o ${file_base_name} && ./${file_base_name}"], "selector" : "source.c", "shell": true, "working_dir" : "$file_p...
阅读全文
摘要:```
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
```
阅读全文
摘要:/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
阅读全文
摘要:find . -type f -exec sed -i "s/std=c++11/std=c++14/g" {} \; 搜索当前目录下的文件,把std=c++11替换成std=c++14,注意{}和\之间有个空格。 全词替换 $ echo "bar ...
阅读全文
摘要:搜索当前目录下的文件,把 替换成 ,注意 和`\`之间有个空格。 全词替换 in regular expressions match word boundaries (i.e. the location between the first word character and non word ch
阅读全文
摘要:`OpenFOAM sqrt std::sqrt()`,否则会报如下错误:
阅读全文
摘要:OpenFOAM定义了新的sqrt,当引入新的Library时,必须显式地使用std::sqrt(),否则会报如下错误: error: call of overloaded ‘sqrt(double&)’ is ambiguous ...
阅读全文
摘要:data = rand(8, 10);fid = fopen('File.data', 'w');if fid == - 1 error('Cannot open file for writing');endfwrite(fid, ndims(data...
阅读全文
摘要:```
data = rand(8, 10);
fid = fopen('File.data', 'w');
if fid == - 1 error('Cannot open file for writing');
end
fwrite(fid, ndims(data), 'uint16');
fwrite(fid, size(data), 'uint64');
fwrite(fid, da...
阅读全文
摘要:最新版目前只能通过编译安装。折腾了半天终于搞定: 需要使用 先把各种 dependencies 安装好。 编译 需要安装 llvm config',安装好3.9版本后可以看到, 需要把`sudo/usr/bin/llvm config 3.9 /usr/bin/llvm config' 安装在 目录
阅读全文
摘要:最新版目前只能通过编译安装。折腾了半天终于搞定: 需要使用apt-get install先把各种 dependencies 安装好。 编译JIT需要安装sudo apt-get install llvm-3.9-dev'。编译过程中会搜寻llvm-conf...
阅读全文