摘要:
https://blog.floydhub.com/a-beginners-guide-on-recurrent-neural-networks-with-pytorch/ https://github.com/gabrielloye/RNN-walkthrough/blob/master/main 阅读全文
随笔档案-2021年05月
tensorflow
2021-05-30 19:15 by DataBases, 53 阅读, 收藏, 编辑
摘要:
import tensorflow as tfmnist = tf.keras.datasets.mnist(x_train, y_train),(x_test,y_test) = mnist.load_data()x_train, x_test = x_train / 255.0,x_test / 阅读全文
MIT's 6.036 course: Introduction to Machine Learning
2021-05-26 14:22 by DataBases, 132 阅读, 收藏, 编辑
摘要:
http://people.csail.mit.edu/tbroderick//ml.html https://introml.odl.mit.edu/cat-soop/6.036 https://github.com/tbroderick/ml_6036_2020_captions/blob/ma 阅读全文
人工智能 机器学习 深度学习的关系
2021-05-25 10:15 by DataBases, 224 阅读, 收藏, 编辑
摘要:
人工智能(AI)是一个广泛而复杂的概念,已经存在了数十年。AI是用于描述模仿人脑认知功能的概念或系统。它可以用来描述机器可以模仿人类行为的方式行动或表现的情况。AI通常用于描述一个可以从经验中学习,可以使用知识来执行任务,推理和做出决策的系统,例如,专家系统,神经网络和模糊逻辑。 机器学习是AI的子 阅读全文
CMU "Neural Networks for NLP"
2021-05-21 12:22 by DataBases, 41 阅读, 收藏, 编辑
摘要:
"Neural Networks for NLP" slides : http://phontron.com/class/nn4nlp2021/schedule.html videos : https://www.youtube.com/playlist?list=PL8PYTP1V4I8AkaHE 阅读全文
Convert Categories Feature to numbers
2021-05-20 13:41 by DataBases, 33 阅读, 收藏, 编辑
摘要:
import pandas as pdif __name__ == '__main__': mapping = { "Class0": 0, "Class1": 1, "Class2": 2, "Class3": 3, "Class4": 4, "Class5": 5 } df = pd.read_ 阅读全文
Clean Text
2021-05-20 13:31 by DataBases, 25 阅读, 收藏, 编辑
摘要:
import reimport stringdef clean_text(s): """ This function cleans the text a bit :param s: string :return: cleaned string """ # split by all whitespac 阅读全文
K-fold Train Version3
2021-05-20 13:27 by DataBases, 45 阅读, 收藏, 编辑
摘要:
# config.pyTRAINING_FILE = "../input/mnist_train_folds.csv"MODEL_OUTPUT = "../models/"# model_dispatcher.pyfrom sklearn import treefrom sklearn import 阅读全文
K-fold Train Version2
2021-05-19 17:01 by DataBases, 47 阅读, 收藏, 编辑
摘要:
# config.pyTRAINING_FILE = "../input/mnist_train_folds.csv"MODEL_OUTPUT = "../models/"# train.pyimport argparseimport osimport configimport joblibimpo 阅读全文
K-fold Train
2021-05-19 16:42 by DataBases, 120 阅读, 收藏, 编辑
摘要:
# config.pyTRAINING_FILE = "../input/mnist_train_folds.csv"MODEL_OUTPUT = "../models/" # train.pyimport osimport configimport joblibimport pandas as p 阅读全文
Confusion matrix
2021-05-19 13:47 by DataBases, 68 阅读, 收藏, 编辑
摘要:
import matplotlib.pyplot as pltimport seaborn as snsfrom sklearn import metrics y_true = [0, 1, 2, 0, 1, 2, 0, 2, 2]y_pred = [0, 2, 1, 0, 2, 1, 0, 0, 阅读全文
Kaggle Solutions
2021-05-19 13:18 by DataBases, 72 阅读, 收藏, 编辑
摘要:
https://farid.one/kaggle-solutions/ 阅读全文
Evaluation metrics for Supervised Machine Learning problems
2021-05-18 16:35 by DataBases, 45 阅读, 收藏, 编辑
摘要:
classification problems, Evaluation metrics: Accuracy: def accuracy(y_true, y_pred): """ Function to calculate accuracy :param y_true: list of true va 阅读全文
stratified k-fold
2021-05-18 15:34 by DataBases, 110 阅读, 收藏, 编辑
摘要:
If you have a skewed dataset for binary classification with 90% positive samples and only 10% negative samples, you don't want to use random k-fold cr 阅读全文
生成K-fold交叉验证数据集
2021-05-18 15:21 by DataBases, 243 阅读, 收藏, 编辑
摘要:
import pandas as pd from sklearn import model_selection if __name__ == "__main__": # Training data is in a CSV file called train.csv df = pd.read_csv( 阅读全文
github repo
2021-05-07 12:24 by DataBases, 29 阅读, 收藏, 编辑
摘要:
https://github.com/vinta/awesome-python https://github.com/diffgram/diffgram https://machinelearningmastery.com/ensemble-machine-learning-with-python- 阅读全文