We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4060a08 + f74452c commit 2ea5665Copy full SHA for 2ea5665
README.md
@@ -6,7 +6,8 @@
6
Julia bindings for [LIBLINEAR](https://www.csie.ntu.edu.tw/~cjlin/liblinear/).
7
8
```julia
9
-using RDatasets
+using RDatasets, LIBLINEAR
10
+using Printf, Statistics
11
12
# Load Fisher's classic iris data
13
iris = dataset("datasets", "iris")
@@ -15,7 +16,7 @@ iris = dataset("datasets", "iris")
15
16
labels = iris[:Species]
17
18
# First dimension of input data is features; second is instances
-instances = convert(Array,iris[:, 1:4])'
19
+instances = convert(Matrix, iris[:, 1:4])'
20
21
# Train SVM on half of the data using default parameters. See the linear_train
22
# function in LIBLINEAR.jl for optional parameter settings.
0 commit comments