Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename objects to factory and add examples for labels and features
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Machine lib_svm = machine("LibSVM") | ||
Machine lda = machine("LDA") | ||
Kernel kernel_gaussian = kernel("GaussianKernel") | ||
Kernel kernel_linear = kernel("LinearKernel") | ||
|
||
RealMatrix real_matrix(2,2) | ||
Features features_from_matrix = features(real_matrix) | ||
|
||
File features_file = csv_file("../../data/classifier_binary_2d_nonlinear_features_train.dat") | ||
Features features_from_file = features(features_file, enum EPrimitiveType.PT_FLOAT64) | ||
|
||
File labels_file = csv_file("../../data/classifier_binary_2d_nonlinear_labels_train.dat") | ||
Labels labels_from_file = labels(labels_file) |
This file was deleted.
Oops, something went wrong.