摘要:
数据挖掘的步骤 我们使用sklearn进行虚线框内的工作(sklearn也可以进行文本特征提取)。通过分析sklearn源码,我们可以看到除训练,预测和评估以外,处理其他工作的类都实现了3个方法:fit、transform和fit_transform。从命名中可以看到,fit_transform方法 阅读全文
摘要:
BAT机器学习面试1000题系列 from:https://blog.csdn.net/v_JULY_v/article/details/78121924 BAT机器学习面试1000题系列 1 请简要介绍下SVM,机器学习 ML模型 易SVM,全称是support vector machine,中文 阅读全文
摘要:
tsne 数据不做预处理: 数据做standard标准化处理 使用pca,不进行预处理: 使用standard scaler预处理,再做pca: 最后效果: 最后使用自编码器来来降维: 代码: 如果是迭代次数不一样,则可能有一些差别,见下图,和上面的可能有些差别: 修改64为128: 阅读全文
python 3以上版本使用pickle.load读取文件报UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 6
摘要:
只需要在打开的时候指定编码 只需要在打开的时候指定编码 fo = open(file, 'rb') dict = pickle.load(fo,encoding='iso-8859-1') 阅读全文
摘要:
You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups b 阅读全文
摘要:
Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of 阅读全文
摘要:
输出示例: neigh.kneighbors(white_verify)(array([[ 0.01140831], [ 0.0067373 ], [ 0.00198682], [ 0.00686728], [ 0.00210445], [ 0.00061413], [ 0.00453888]]), 阅读全文
摘要:
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
摘要:
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文
摘要:
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文