Skip to content

Commit

Permalink
rename objects to factory and add examples for labels and features
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Mar 19, 2018
1 parent f2dcf6c commit e789605
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 13 additions & 0 deletions examples/meta/src/base_api/factory.sg
@@ -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)
4 changes: 0 additions & 4 deletions examples/meta/src/base_api/objects.sg

This file was deleted.

0 comments on commit e789605

Please sign in to comment.