摘要:
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <map> #include <fstream> #include <sstream> void ReadDataFromFil 阅读全文
摘要:
#!/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=[ 阅读全文
摘要:
template <class T1, class T2> double Minkowski(const std::vector<T1> &inst1, const std::vector<T2> &inst2, const double &k) { if(inst1.size() != inst2 阅读全文
摘要:
#include <iostream> #include <vector> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <functional> #include <num 阅读全文
摘要:
原始数据 #include <iostream>#include <fstream>#include <sstream>#include <vector>#include <string>#include <algorithm>#include <numeric>#include <cmath>#i 阅读全文
摘要:
原始数据 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 阅读全文
摘要:
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, 阅读全文
摘要:
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 阅读全文
摘要:
比如输入是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 阅读全文
摘要:
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. 阅读全文