
sklearn
GuokLiu
享受当下时光,专注做好一件事
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
180114 Sklearn.GaussianMixture中的convaiance_type说明
协方差矩阵的几何解释 sklearn.GaussianMixture covariance_type : {‘full’, ‘tied’, ‘diag’, ‘spherical’}, ‘full’ (each component has its own general covariance matrix), ‘tied’ (all components share the sam原创 2018-01-14 10:47:02 · 2535 阅读 · 0 评论 -
180304 Keras+Sklearn打乱数据顺序 and 按比例分割训练+测试数据
打乱数据顺序 # shufle from sklearn.utils import shuffle b_train,b_label = shuffle(b_train,b_label) 按比例将数据分割成训练集+测试集 # split the original training data into two parts: training data and validation data # this原创 2018-03-04 20:55:56 · 5591 阅读 · 0 评论 -
180504 sklearn 数据标准化
http://scikit-learn.org/stable/modules/preprocessing.html 代码: from sklearn.preprocessing import StandardScaler data = np.arange(9).reshape((3,3)) print('#'*60) print('原始数据:\n',data) test = [[10,11...原创 2018-05-04 10:45:37 · 485 阅读 · 0 评论 -
181218 OneHotEncoder与numpy数组保存为mat文件
将[0 1 2 3 4 5 6 7 8 9]标签转换成OneHot编码 from sklearn.preprocessing import OneHotEncoder ohe = OneHotEncoder() ohe.fit(np.arange(10).reshape(-1,1)) labels = ohe.transform(labels).astype('uint8').toarray(...原创 2018-12-18 18:02:46 · 1382 阅读 · 0 评论 -
190120 Skelarn.preprocessing中的MinMaxScaler()数据标准化
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 2019-01-20 @author: liuguokai """ import numpy as np from sklearn.preprocessing import MinMaxScaler de原创 2019-01-20 11:38:34 · 3110 阅读 · 0 评论