- 博客(10)
- 资源 (4)
- 收藏
- 关注
原创 遗传算法
https://blog.csdn.net/weixin_37790882/article/details/84034956https://blog.csdn.net/weixin_37790882/article/details/100622338
2019-12-19 13:20:08 165
原创 一文搞定机器学习算法
import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snspima = pd.read_csv('PimaIndiansdiabetes.csv')#打印关于pima的数据描述# print(pima.describe())#前25%的数,中位数,前75%的数#...
2019-12-18 17:48:29 391
原创 词嵌入
import torchimport torch.nn as nntorch.manual_seed(1)word_to_ix = {}c = 0with open('taiping\所有名字.txt') as f: for data in f.readlines(): word_to_ix[data.strip()] = c c += 1e...
2019-12-18 14:46:47 182
原创 多线程统计频次
import csvimport numpy as npimport requestsfrom multiprocessing import Pool # 导入进程池my_matrix = np.zeros(shape=(19000,190))# czsj = []def func(): with open(r'C:\Users\Administrator\Downloa...
2019-12-18 09:08:16 456
原创 字典可视化
import csvimport numpy as npimport matplotlib.pyplot as plthospitals = {}with open(r'C:\Users\Administrator\Downloads\df_test.csv',encoding='utf8') as f: datas = csv.reader(f) i = 0 ...
2019-12-16 18:24:02 1616
原创 xgboost加载模型进行预测
比较好的完整示例:https://blog.csdn.net/u010159842/article/details/78053669X = train.drop(['标签', '用户标识'], axis=1)xgb_train = xgb.DMatrix(X, label=y)tar = xgb.Booster(model_file='20170201_B.model')pr...
2019-12-05 10:27:18 1785 1
原创 xgboost项目实战
import xgboost as xgbstart_time = time.time()offline = 0online = 0params = {'booster': 'gbtree', 'objective': 'rank:pairwise', 'eval_metric': 'auc', 'gamma': 0.1, ...
2019-12-05 10:03:24 716
原创 sklearn转换onehot
from sklearn.preprocessing import OneHotEncodera1 = OneHotEncoder(sparse = False).fit_transform( trains[['用户性别']] )
2019-12-05 09:32:36 360 2
原创 pandas数据分析2
import timeimport mathimport numpy as np # linear algebraimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)import matplotlib.pyplot as pltimport matplotlib as mplimport seab...
2019-12-04 17:40:12 167
原创 pandas数据分析实战1
import timeimport mathimport numpy as np # linear algebraimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)import matplotlib.pyplot as pltimport matplotlib as mplimport seab...
2019-12-04 17:12:28 230
word2vec訓練集text8.zip
2019-05-06
minist手写数字数据集
2018-12-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人