How to calculate mathematics in python 1. covariance np.cov(x1, x2) 2. correlation
Category
9 articles in this topic.
How to calculate mathematics in python 1. covariance np.cov(x1, x2) 2. correlation
Applications in tensorflow and pytorch. Tensorflow 1. transform "pandas.dataframe" to "tensorflow.dataset" For training dataset, you should set the "label" to be the prediction lab
How to plot charts for dataset Plotting --- During a competition, there must be a number of features and some of them might make more influence on the target value than others. So
Applications in pandas "pandas is kind of excel in python" 1. Dataframe 2. Dataframe to numpy: df.to numpy() 3. Numpy to Dataframe: df = pd.Dataframe(array) 4. drop some columns: 5
Applications in numpy 1. reshape numpy array .reshape() 2. generate array from a fixed range 3. generate random values array
Python Venv 搭建个人python虚拟环境 --- 新建一个文件夹目录, 假设叫做“deeplearning”. 执行 python3 -m venv venv , 第一个“venv”表示创建virtual environment, 后面的“venv”表示环境文件夹命名. 执行 source venv/bin/activate 以激活python虚
-- 1. arguments: 实参, 调用函数时传入的参数 2. parameters: 形参, 定义函数时包含的参数 3.
记录scikit learn库的使用 Logistic Regression --- Loading Dataset Split the train/test set Fit the Model Make Predictions Evaluate Accuracy
Python basic knowledge 列表创建 1. 创建一个 一维 空列表, 长度为0 2. 创建一个 二维 空列表, 行和列长度为 n 列表的几种遍历方式: 1. 从0到nums列表最后一位顺序遍历法, i表示下标 ( nums[0], nums[1]...nums[n-1] ) 2. 遍历由 [left, right] 左右闭区间组成的nums