Python 数据科学学习
文章平均质量分 52
Frankooool
这个作者很懒,什么都没留下…
展开
-
Python Read BED file
Python read bed file原创 2022-06-01 14:16:59 · 936 阅读 · 0 评论 -
Unsupervised learning notes
Unsupervised LearningDimensionality ReductionPCAFind the features that capture most of the data points.(https://www.youtube.com/watch?v=HMOI_lkzW08)from sklearn.preprocessing import StandardScalerfrom sklearn.decomposition import PCAfrom sklearn.d原创 2022-04-24 16:07:13 · 764 阅读 · 0 评论 -
Evaluate ML Models Notes
Evaluate ModelsDummy ModelsManually assign the target values to the target while ignoring any feature. There are multiple ways: 1. Assign the most frequent 2. Choose the preferred result 3. Stratified predictionIt serves as the baseline to be compared w原创 2022-04-21 13:30:33 · 1702 阅读 · 0 评论 -
Applied Machine Learning Notes
Applied Machine LearningIntroductionTermsA dataset that is intended to be analyzed by machine learning method is supposed to have Feature (X) and Target Value/Label (y)Traning and test sets are needed for a given dataset.Model fitting will produce a ‘原创 2022-04-17 15:56:14 · 1122 阅读 · 0 评论 -
Simple machine learning workflow
选自coursera applied machine learning的assignment 1一个简单的用knn做癌症分型的题目import numpy as npimport pandas as pdfrom sklearn.datasets import load_breast_cancer# 载入cancer, 是一个dictcancer = load_breast_cancer()# 分类X输入,y输出X = cancerdf[cancer['feature_names']]原创 2022-04-08 14:20:11 · 1264 阅读 · 0 评论 -
简单Matplotlib流程
正常Matplotlib流程import matplotlib.pyplot as pltx = [1,2,3,4]y = [5,6,7,8]# 设置纸张大小plt.figure(figsize=(4,3),facecolor=None) # subplotplt.subplot(111)plt.plot(x,y,原创 2022-04-06 11:45:33 · 1746 阅读 · 0 评论