fengdu78 / data-science-notes Goto Github PK
View Code? Open in Web Editor NEW数据科学的笔记以及资料搜集
数据科学的笔记以及资料搜集
In [104]:
x = [[1,3,3],
[7,5,2]]
print(np.argmax(x,axis=0))
这里的axis=0应修改为:
axis=1
否则与说明不符
Page13
3.13-Line6
u是具有特征值 λi 和 b 的特征向量
应更正为:
u是具有特征值 λi 的特征向量
ui is an eigenvector with eigenvalue λi
ValueError Traceback (most recent call last)
in
----> 1 np.set_printoptions(threshold=np.nan)
2 Z = np.zeros((16,16))
3 print(Z)
ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation
将np.set_printoptions(threshold=np.nan)改为np.set_printoptions(threshold=np.inf)
我的numpy版本为1.19.1
使用我自己的数据集时,前面画相关性图时都没有报错,直到使用这句代码fs.identify_zero_importance(task = 'classification', eval_metric = 'auc', n_iterations = 10, early_stopping = True)
报错为:y contains new labels: [ 628 1396 1476 1800 2076 3620 3814 3832 3840 4246 4392 4398 4500 4536],但是我检查数据之后没有发现new labels,请问是什么原因呢?非常感谢您的开发!!
我们用$a^T$或者$A_{i,:}$表示矩阵$A$的第$i$行:
应更正为:
我们用$a^T_i$或者$A_{i,:}$表示矩阵$A$的第$i$行:
in[15]
import time
for i in range(50):
sys.stdout.write('#')
sys.stdout.flush()
time.sleep(0.5)
似乎缺少了import sys
教程最后部分:
optimizer = optim.SGD(model.fc.parameters(), lr=1e-2, momentum=0.9)
原文应该是:
optimizer = optim.SGD(model.parameters(), lr=1e-2, momentum=0.9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.