sklearn_sample_datasets_rs/
iris.rs

1#[derive(Clone, Debug)]
2pub struct Data {
3	sepal_length: f64,
4	sepal_width: f64,
5	petal_length: f64,
6	petal_width: f64,
7	target: i32,
8}
9
10#[repr(u8)]
11#[derive(Clone, Copy, Debug)]
12pub enum Target {
13	SETOSA = 0,
14	VERSICOLOR = 1,
15	VIRGINICA = 2,
16}
17
18pub const DATA: &'static[Data] = &[
19    Data{sepal_length: 5.1_f64, sepal_width: 3.5_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
20    Data{sepal_length: 4.9_f64, sepal_width: 3.0_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
21    Data{sepal_length: 4.7_f64, sepal_width: 3.2_f64, petal_length: 1.3_f64, petal_width: 0.2_f64, target: 0},
22    Data{sepal_length: 4.6_f64, sepal_width: 3.1_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
23    Data{sepal_length: 5.0_f64, sepal_width: 3.6_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
24    Data{sepal_length: 5.4_f64, sepal_width: 3.9_f64, petal_length: 1.7_f64, petal_width: 0.4_f64, target: 0},
25    Data{sepal_length: 4.6_f64, sepal_width: 3.4_f64, petal_length: 1.4_f64, petal_width: 0.3_f64, target: 0},
26    Data{sepal_length: 5.0_f64, sepal_width: 3.4_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
27    Data{sepal_length: 4.4_f64, sepal_width: 2.9_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
28    Data{sepal_length: 4.9_f64, sepal_width: 3.1_f64, petal_length: 1.5_f64, petal_width: 0.1_f64, target: 0},
29    Data{sepal_length: 5.4_f64, sepal_width: 3.7_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
30    Data{sepal_length: 4.8_f64, sepal_width: 3.4_f64, petal_length: 1.6_f64, petal_width: 0.2_f64, target: 0},
31    Data{sepal_length: 4.8_f64, sepal_width: 3.0_f64, petal_length: 1.4_f64, petal_width: 0.1_f64, target: 0},
32    Data{sepal_length: 4.3_f64, sepal_width: 3.0_f64, petal_length: 1.1_f64, petal_width: 0.1_f64, target: 0},
33    Data{sepal_length: 5.8_f64, sepal_width: 4.0_f64, petal_length: 1.2_f64, petal_width: 0.2_f64, target: 0},
34    Data{sepal_length: 5.7_f64, sepal_width: 4.4_f64, petal_length: 1.5_f64, petal_width: 0.4_f64, target: 0},
35    Data{sepal_length: 5.4_f64, sepal_width: 3.9_f64, petal_length: 1.3_f64, petal_width: 0.4_f64, target: 0},
36    Data{sepal_length: 5.1_f64, sepal_width: 3.5_f64, petal_length: 1.4_f64, petal_width: 0.3_f64, target: 0},
37    Data{sepal_length: 5.7_f64, sepal_width: 3.8_f64, petal_length: 1.7_f64, petal_width: 0.3_f64, target: 0},
38    Data{sepal_length: 5.1_f64, sepal_width: 3.8_f64, petal_length: 1.5_f64, petal_width: 0.3_f64, target: 0},
39    Data{sepal_length: 5.4_f64, sepal_width: 3.4_f64, petal_length: 1.7_f64, petal_width: 0.2_f64, target: 0},
40    Data{sepal_length: 5.1_f64, sepal_width: 3.7_f64, petal_length: 1.5_f64, petal_width: 0.4_f64, target: 0},
41    Data{sepal_length: 4.6_f64, sepal_width: 3.6_f64, petal_length: 1.0_f64, petal_width: 0.2_f64, target: 0},
42    Data{sepal_length: 5.1_f64, sepal_width: 3.3_f64, petal_length: 1.7_f64, petal_width: 0.5_f64, target: 0},
43    Data{sepal_length: 4.8_f64, sepal_width: 3.4_f64, petal_length: 1.9_f64, petal_width: 0.2_f64, target: 0},
44    Data{sepal_length: 5.0_f64, sepal_width: 3.0_f64, petal_length: 1.6_f64, petal_width: 0.2_f64, target: 0},
45    Data{sepal_length: 5.0_f64, sepal_width: 3.4_f64, petal_length: 1.6_f64, petal_width: 0.4_f64, target: 0},
46    Data{sepal_length: 5.2_f64, sepal_width: 3.5_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
47    Data{sepal_length: 5.2_f64, sepal_width: 3.4_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
48    Data{sepal_length: 4.7_f64, sepal_width: 3.2_f64, petal_length: 1.6_f64, petal_width: 0.2_f64, target: 0},
49    Data{sepal_length: 4.8_f64, sepal_width: 3.1_f64, petal_length: 1.6_f64, petal_width: 0.2_f64, target: 0},
50    Data{sepal_length: 5.4_f64, sepal_width: 3.4_f64, petal_length: 1.5_f64, petal_width: 0.4_f64, target: 0},
51    Data{sepal_length: 5.2_f64, sepal_width: 4.1_f64, petal_length: 1.5_f64, petal_width: 0.1_f64, target: 0},
52    Data{sepal_length: 5.5_f64, sepal_width: 4.2_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
53    Data{sepal_length: 4.9_f64, sepal_width: 3.1_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
54    Data{sepal_length: 5.0_f64, sepal_width: 3.2_f64, petal_length: 1.2_f64, petal_width: 0.2_f64, target: 0},
55    Data{sepal_length: 5.5_f64, sepal_width: 3.5_f64, petal_length: 1.3_f64, petal_width: 0.2_f64, target: 0},
56    Data{sepal_length: 4.9_f64, sepal_width: 3.6_f64, petal_length: 1.4_f64, petal_width: 0.1_f64, target: 0},
57    Data{sepal_length: 4.4_f64, sepal_width: 3.0_f64, petal_length: 1.3_f64, petal_width: 0.2_f64, target: 0},
58    Data{sepal_length: 5.1_f64, sepal_width: 3.4_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
59    Data{sepal_length: 5.0_f64, sepal_width: 3.5_f64, petal_length: 1.3_f64, petal_width: 0.3_f64, target: 0},
60    Data{sepal_length: 4.5_f64, sepal_width: 2.3_f64, petal_length: 1.3_f64, petal_width: 0.3_f64, target: 0},
61    Data{sepal_length: 4.4_f64, sepal_width: 3.2_f64, petal_length: 1.3_f64, petal_width: 0.2_f64, target: 0},
62    Data{sepal_length: 5.0_f64, sepal_width: 3.5_f64, petal_length: 1.6_f64, petal_width: 0.6_f64, target: 0},
63    Data{sepal_length: 5.1_f64, sepal_width: 3.8_f64, petal_length: 1.9_f64, petal_width: 0.4_f64, target: 0},
64    Data{sepal_length: 4.8_f64, sepal_width: 3.0_f64, petal_length: 1.4_f64, petal_width: 0.3_f64, target: 0},
65    Data{sepal_length: 5.1_f64, sepal_width: 3.8_f64, petal_length: 1.6_f64, petal_width: 0.2_f64, target: 0},
66    Data{sepal_length: 4.6_f64, sepal_width: 3.2_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
67    Data{sepal_length: 5.3_f64, sepal_width: 3.7_f64, petal_length: 1.5_f64, petal_width: 0.2_f64, target: 0},
68    Data{sepal_length: 5.0_f64, sepal_width: 3.3_f64, petal_length: 1.4_f64, petal_width: 0.2_f64, target: 0},
69    Data{sepal_length: 7.0_f64, sepal_width: 3.2_f64, petal_length: 4.7_f64, petal_width: 1.4_f64, target: 1},
70    Data{sepal_length: 6.4_f64, sepal_width: 3.2_f64, petal_length: 4.5_f64, petal_width: 1.5_f64, target: 1},
71    Data{sepal_length: 6.9_f64, sepal_width: 3.1_f64, petal_length: 4.9_f64, petal_width: 1.5_f64, target: 1},
72    Data{sepal_length: 5.5_f64, sepal_width: 2.3_f64, petal_length: 4.0_f64, petal_width: 1.3_f64, target: 1},
73    Data{sepal_length: 6.5_f64, sepal_width: 2.8_f64, petal_length: 4.6_f64, petal_width: 1.5_f64, target: 1},
74    Data{sepal_length: 5.7_f64, sepal_width: 2.8_f64, petal_length: 4.5_f64, petal_width: 1.3_f64, target: 1},
75    Data{sepal_length: 6.3_f64, sepal_width: 3.3_f64, petal_length: 4.7_f64, petal_width: 1.6_f64, target: 1},
76    Data{sepal_length: 4.9_f64, sepal_width: 2.4_f64, petal_length: 3.3_f64, petal_width: 1.0_f64, target: 1},
77    Data{sepal_length: 6.6_f64, sepal_width: 2.9_f64, petal_length: 4.6_f64, petal_width: 1.3_f64, target: 1},
78    Data{sepal_length: 5.2_f64, sepal_width: 2.7_f64, petal_length: 3.9_f64, petal_width: 1.4_f64, target: 1},
79    Data{sepal_length: 5.0_f64, sepal_width: 2.0_f64, petal_length: 3.5_f64, petal_width: 1.0_f64, target: 1},
80    Data{sepal_length: 5.9_f64, sepal_width: 3.0_f64, petal_length: 4.2_f64, petal_width: 1.5_f64, target: 1},
81    Data{sepal_length: 6.0_f64, sepal_width: 2.2_f64, petal_length: 4.0_f64, petal_width: 1.0_f64, target: 1},
82    Data{sepal_length: 6.1_f64, sepal_width: 2.9_f64, petal_length: 4.7_f64, petal_width: 1.4_f64, target: 1},
83    Data{sepal_length: 5.6_f64, sepal_width: 2.9_f64, petal_length: 3.6_f64, petal_width: 1.3_f64, target: 1},
84    Data{sepal_length: 6.7_f64, sepal_width: 3.1_f64, petal_length: 4.4_f64, petal_width: 1.4_f64, target: 1},
85    Data{sepal_length: 5.6_f64, sepal_width: 3.0_f64, petal_length: 4.5_f64, petal_width: 1.5_f64, target: 1},
86    Data{sepal_length: 5.8_f64, sepal_width: 2.7_f64, petal_length: 4.1_f64, petal_width: 1.0_f64, target: 1},
87    Data{sepal_length: 6.2_f64, sepal_width: 2.2_f64, petal_length: 4.5_f64, petal_width: 1.5_f64, target: 1},
88    Data{sepal_length: 5.6_f64, sepal_width: 2.5_f64, petal_length: 3.9_f64, petal_width: 1.1_f64, target: 1},
89    Data{sepal_length: 5.9_f64, sepal_width: 3.2_f64, petal_length: 4.8_f64, petal_width: 1.8_f64, target: 1},
90    Data{sepal_length: 6.1_f64, sepal_width: 2.8_f64, petal_length: 4.0_f64, petal_width: 1.3_f64, target: 1},
91    Data{sepal_length: 6.3_f64, sepal_width: 2.5_f64, petal_length: 4.9_f64, petal_width: 1.5_f64, target: 1},
92    Data{sepal_length: 6.1_f64, sepal_width: 2.8_f64, petal_length: 4.7_f64, petal_width: 1.2_f64, target: 1},
93    Data{sepal_length: 6.4_f64, sepal_width: 2.9_f64, petal_length: 4.3_f64, petal_width: 1.3_f64, target: 1},
94    Data{sepal_length: 6.6_f64, sepal_width: 3.0_f64, petal_length: 4.4_f64, petal_width: 1.4_f64, target: 1},
95    Data{sepal_length: 6.8_f64, sepal_width: 2.8_f64, petal_length: 4.8_f64, petal_width: 1.4_f64, target: 1},
96    Data{sepal_length: 6.7_f64, sepal_width: 3.0_f64, petal_length: 5.0_f64, petal_width: 1.7_f64, target: 1},
97    Data{sepal_length: 6.0_f64, sepal_width: 2.9_f64, petal_length: 4.5_f64, petal_width: 1.5_f64, target: 1},
98    Data{sepal_length: 5.7_f64, sepal_width: 2.6_f64, petal_length: 3.5_f64, petal_width: 1.0_f64, target: 1},
99    Data{sepal_length: 5.5_f64, sepal_width: 2.4_f64, petal_length: 3.8_f64, petal_width: 1.1_f64, target: 1},
100    Data{sepal_length: 5.5_f64, sepal_width: 2.4_f64, petal_length: 3.7_f64, petal_width: 1.0_f64, target: 1},
101    Data{sepal_length: 5.8_f64, sepal_width: 2.7_f64, petal_length: 3.9_f64, petal_width: 1.2_f64, target: 1},
102    Data{sepal_length: 6.0_f64, sepal_width: 2.7_f64, petal_length: 5.1_f64, petal_width: 1.6_f64, target: 1},
103    Data{sepal_length: 5.4_f64, sepal_width: 3.0_f64, petal_length: 4.5_f64, petal_width: 1.5_f64, target: 1},
104    Data{sepal_length: 6.0_f64, sepal_width: 3.4_f64, petal_length: 4.5_f64, petal_width: 1.6_f64, target: 1},
105    Data{sepal_length: 6.7_f64, sepal_width: 3.1_f64, petal_length: 4.7_f64, petal_width: 1.5_f64, target: 1},
106    Data{sepal_length: 6.3_f64, sepal_width: 2.3_f64, petal_length: 4.4_f64, petal_width: 1.3_f64, target: 1},
107    Data{sepal_length: 5.6_f64, sepal_width: 3.0_f64, petal_length: 4.1_f64, petal_width: 1.3_f64, target: 1},
108    Data{sepal_length: 5.5_f64, sepal_width: 2.5_f64, petal_length: 4.0_f64, petal_width: 1.3_f64, target: 1},
109    Data{sepal_length: 5.5_f64, sepal_width: 2.6_f64, petal_length: 4.4_f64, petal_width: 1.2_f64, target: 1},
110    Data{sepal_length: 6.1_f64, sepal_width: 3.0_f64, petal_length: 4.6_f64, petal_width: 1.4_f64, target: 1},
111    Data{sepal_length: 5.8_f64, sepal_width: 2.6_f64, petal_length: 4.0_f64, petal_width: 1.2_f64, target: 1},
112    Data{sepal_length: 5.0_f64, sepal_width: 2.3_f64, petal_length: 3.3_f64, petal_width: 1.0_f64, target: 1},
113    Data{sepal_length: 5.6_f64, sepal_width: 2.7_f64, petal_length: 4.2_f64, petal_width: 1.3_f64, target: 1},
114    Data{sepal_length: 5.7_f64, sepal_width: 3.0_f64, petal_length: 4.2_f64, petal_width: 1.2_f64, target: 1},
115    Data{sepal_length: 5.7_f64, sepal_width: 2.9_f64, petal_length: 4.2_f64, petal_width: 1.3_f64, target: 1},
116    Data{sepal_length: 6.2_f64, sepal_width: 2.9_f64, petal_length: 4.3_f64, petal_width: 1.3_f64, target: 1},
117    Data{sepal_length: 5.1_f64, sepal_width: 2.5_f64, petal_length: 3.0_f64, petal_width: 1.1_f64, target: 1},
118    Data{sepal_length: 5.7_f64, sepal_width: 2.8_f64, petal_length: 4.1_f64, petal_width: 1.3_f64, target: 1},
119    Data{sepal_length: 6.3_f64, sepal_width: 3.3_f64, petal_length: 6.0_f64, petal_width: 2.5_f64, target: 2},
120    Data{sepal_length: 5.8_f64, sepal_width: 2.7_f64, petal_length: 5.1_f64, petal_width: 1.9_f64, target: 2},
121    Data{sepal_length: 7.1_f64, sepal_width: 3.0_f64, petal_length: 5.9_f64, petal_width: 2.1_f64, target: 2},
122    Data{sepal_length: 6.3_f64, sepal_width: 2.9_f64, petal_length: 5.6_f64, petal_width: 1.8_f64, target: 2},
123    Data{sepal_length: 6.5_f64, sepal_width: 3.0_f64, petal_length: 5.8_f64, petal_width: 2.2_f64, target: 2},
124    Data{sepal_length: 7.6_f64, sepal_width: 3.0_f64, petal_length: 6.6_f64, petal_width: 2.1_f64, target: 2},
125    Data{sepal_length: 4.9_f64, sepal_width: 2.5_f64, petal_length: 4.5_f64, petal_width: 1.7_f64, target: 2},
126    Data{sepal_length: 7.3_f64, sepal_width: 2.9_f64, petal_length: 6.3_f64, petal_width: 1.8_f64, target: 2},
127    Data{sepal_length: 6.7_f64, sepal_width: 2.5_f64, petal_length: 5.8_f64, petal_width: 1.8_f64, target: 2},
128    Data{sepal_length: 7.2_f64, sepal_width: 3.6_f64, petal_length: 6.1_f64, petal_width: 2.5_f64, target: 2},
129    Data{sepal_length: 6.5_f64, sepal_width: 3.2_f64, petal_length: 5.1_f64, petal_width: 2.0_f64, target: 2},
130    Data{sepal_length: 6.4_f64, sepal_width: 2.7_f64, petal_length: 5.3_f64, petal_width: 1.9_f64, target: 2},
131    Data{sepal_length: 6.8_f64, sepal_width: 3.0_f64, petal_length: 5.5_f64, petal_width: 2.1_f64, target: 2},
132    Data{sepal_length: 5.7_f64, sepal_width: 2.5_f64, petal_length: 5.0_f64, petal_width: 2.0_f64, target: 2},
133    Data{sepal_length: 5.8_f64, sepal_width: 2.8_f64, petal_length: 5.1_f64, petal_width: 2.4_f64, target: 2},
134    Data{sepal_length: 6.4_f64, sepal_width: 3.2_f64, petal_length: 5.3_f64, petal_width: 2.3_f64, target: 2},
135    Data{sepal_length: 6.5_f64, sepal_width: 3.0_f64, petal_length: 5.5_f64, petal_width: 1.8_f64, target: 2},
136    Data{sepal_length: 7.7_f64, sepal_width: 3.8_f64, petal_length: 6.7_f64, petal_width: 2.2_f64, target: 2},
137    Data{sepal_length: 7.7_f64, sepal_width: 2.6_f64, petal_length: 6.9_f64, petal_width: 2.3_f64, target: 2},
138    Data{sepal_length: 6.0_f64, sepal_width: 2.2_f64, petal_length: 5.0_f64, petal_width: 1.5_f64, target: 2},
139    Data{sepal_length: 6.9_f64, sepal_width: 3.2_f64, petal_length: 5.7_f64, petal_width: 2.3_f64, target: 2},
140    Data{sepal_length: 5.6_f64, sepal_width: 2.8_f64, petal_length: 4.9_f64, petal_width: 2.0_f64, target: 2},
141    Data{sepal_length: 7.7_f64, sepal_width: 2.8_f64, petal_length: 6.7_f64, petal_width: 2.0_f64, target: 2},
142    Data{sepal_length: 6.3_f64, sepal_width: 2.7_f64, petal_length: 4.9_f64, petal_width: 1.8_f64, target: 2},
143    Data{sepal_length: 6.7_f64, sepal_width: 3.3_f64, petal_length: 5.7_f64, petal_width: 2.1_f64, target: 2},
144    Data{sepal_length: 7.2_f64, sepal_width: 3.2_f64, petal_length: 6.0_f64, petal_width: 1.8_f64, target: 2},
145    Data{sepal_length: 6.2_f64, sepal_width: 2.8_f64, petal_length: 4.8_f64, petal_width: 1.8_f64, target: 2},
146    Data{sepal_length: 6.1_f64, sepal_width: 3.0_f64, petal_length: 4.9_f64, petal_width: 1.8_f64, target: 2},
147    Data{sepal_length: 6.4_f64, sepal_width: 2.8_f64, petal_length: 5.6_f64, petal_width: 2.1_f64, target: 2},
148    Data{sepal_length: 7.2_f64, sepal_width: 3.0_f64, petal_length: 5.8_f64, petal_width: 1.6_f64, target: 2},
149    Data{sepal_length: 7.4_f64, sepal_width: 2.8_f64, petal_length: 6.1_f64, petal_width: 1.9_f64, target: 2},
150    Data{sepal_length: 7.9_f64, sepal_width: 3.8_f64, petal_length: 6.4_f64, petal_width: 2.0_f64, target: 2},
151    Data{sepal_length: 6.4_f64, sepal_width: 2.8_f64, petal_length: 5.6_f64, petal_width: 2.2_f64, target: 2},
152    Data{sepal_length: 6.3_f64, sepal_width: 2.8_f64, petal_length: 5.1_f64, petal_width: 1.5_f64, target: 2},
153    Data{sepal_length: 6.1_f64, sepal_width: 2.6_f64, petal_length: 5.6_f64, petal_width: 1.4_f64, target: 2},
154    Data{sepal_length: 7.7_f64, sepal_width: 3.0_f64, petal_length: 6.1_f64, petal_width: 2.3_f64, target: 2},
155    Data{sepal_length: 6.3_f64, sepal_width: 3.4_f64, petal_length: 5.6_f64, petal_width: 2.4_f64, target: 2},
156    Data{sepal_length: 6.4_f64, sepal_width: 3.1_f64, petal_length: 5.5_f64, petal_width: 1.8_f64, target: 2},
157    Data{sepal_length: 6.0_f64, sepal_width: 3.0_f64, petal_length: 4.8_f64, petal_width: 1.8_f64, target: 2},
158    Data{sepal_length: 6.9_f64, sepal_width: 3.1_f64, petal_length: 5.4_f64, petal_width: 2.1_f64, target: 2},
159    Data{sepal_length: 6.7_f64, sepal_width: 3.1_f64, petal_length: 5.6_f64, petal_width: 2.4_f64, target: 2},
160    Data{sepal_length: 6.9_f64, sepal_width: 3.1_f64, petal_length: 5.1_f64, petal_width: 2.3_f64, target: 2},
161    Data{sepal_length: 5.8_f64, sepal_width: 2.7_f64, petal_length: 5.1_f64, petal_width: 1.9_f64, target: 2},
162    Data{sepal_length: 6.8_f64, sepal_width: 3.2_f64, petal_length: 5.9_f64, petal_width: 2.3_f64, target: 2},
163    Data{sepal_length: 6.7_f64, sepal_width: 3.3_f64, petal_length: 5.7_f64, petal_width: 2.5_f64, target: 2},
164    Data{sepal_length: 6.7_f64, sepal_width: 3.0_f64, petal_length: 5.2_f64, petal_width: 2.3_f64, target: 2},
165    Data{sepal_length: 6.3_f64, sepal_width: 2.5_f64, petal_length: 5.0_f64, petal_width: 1.9_f64, target: 2},
166    Data{sepal_length: 6.5_f64, sepal_width: 3.0_f64, petal_length: 5.2_f64, petal_width: 2.0_f64, target: 2},
167    Data{sepal_length: 6.2_f64, sepal_width: 3.4_f64, petal_length: 5.4_f64, petal_width: 2.3_f64, target: 2},
168    Data{sepal_length: 5.9_f64, sepal_width: 3.0_f64, petal_length: 5.1_f64, petal_width: 1.8_f64, target: 2},
169];