上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: #include <iostream> #include <string> #include <vector> #include <algorithm> #include <map> #include <fstream> #include <sstream> void ReadDataFromFil 阅读全文
posted @ 2019-03-13 16:57 东宫得臣 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python import pandas as pd import collections df_dict = pd.read_excel('c:\data\machines.xlsx', sheet_name=None, index_col=None, na_values=[ 阅读全文
posted @ 2019-03-08 09:19 东宫得臣 阅读(952) 评论(0) 推荐(0) 编辑
摘要: template <class T1, class T2> double Minkowski(const std::vector<T1> &inst1, const std::vector<T2> &inst2, const double &k) { if(inst1.size() != inst2 阅读全文
posted @ 2019-03-06 16:57 东宫得臣 阅读(470) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <functional> #include <num 阅读全文
posted @ 2019-02-28 10:45 东宫得臣 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 原始数据 #include <iostream>#include <fstream>#include <sstream>#include <vector>#include <string>#include <algorithm>#include <numeric>#include <cmath>#i 阅读全文
posted @ 2019-02-26 19:53 东宫得臣 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 原始数据 Say you are given a data set where each observed example has a set of features, but has nolabels. Labels are an essential ingredient to a supervi 阅读全文
posted @ 2019-02-26 09:25 东宫得臣 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Pseudo Code of KNN We can implement a KNN model by following the below steps: Load the data Initialise the value of k For getting the predicted class, 阅读全文
posted @ 2019-02-25 15:07 东宫得臣 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Nearest-neighbor methods use those observations in the training set T closest in input space to x form Y-hat. Specifically, the k-nearest neighbor fit 阅读全文
posted @ 2019-01-10 20:54 东宫得臣 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 比如输入是192.168.80.12-15,解析成192.168.80.12、192.168.80.13、192.168.80.14、192.168.80.15; 亦或192.168.10.10-192.168.10.12,解析成192.168.10.10、192.168.10.11、192.168 阅读全文
posted @ 2019-01-08 14:47 东宫得臣 阅读(384) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tfw1 = tf.Variable(tf.random_normal((2, 3), stddev=1, seed=1))w2 = tf.Variable(tf.random_normal((3, 1), stddev=1, seed=1))x = tf. 阅读全文
posted @ 2018-12-27 21:15 东宫得臣 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页