最新 | 最热门 | 最高评价

+0  LinearSVC versus SVC in scikit-learn

Tag: machine learning | scikit-learn
Robin Dong 发于 2019年01月26日 11:32 | 点击: 714 | 展开摘要
In competition ‘Quora Insincere Questions Classification’, I want to use simple TF-IDF statistics as a baseline.

def grid_search(classifier, parameters, X, y, X_train, y_train, X_test, y_test, name = 'SVC'):
begin = time.ti

查看全文: http://www.udpwork.com/item/17299.html

+0  Prediction of Red Wine Quality

Tag: machine learning | Kaggle | scikit-learn
Robin Dong 发于 2018年08月10日 14:22 | 点击: 688 | 展开摘要
In Kaggle platform, there is an example dataset about Quality of Red Wine. I wrote some code for it by using scikit-learn and pandas:

import pandas as pd

from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import ExtraT

查看全文: http://www.udpwork.com/item/17015.html

+0  Use PCA (Principal Component Analysis) to blur color image

Tag: machine learning | PCA | scikit-learn
Robin Dong 发于 2018年08月03日 11:33 | 点击: 474 | 展开摘要
I wrote an example of blurring color picture by using PCA from scikit-learn:

import cv2
import numpy as np

from sklearn.decomposition import PCA

pca = PCA(n_components = 0.96)

img = cv2.imread("input.jpg")
reduced = pca.fit_tr

查看全文: http://www.udpwork.com/item/17016.html
|<<<1>>>| 一共1页, 3条记录