1234567891011121314151617181920212223242526272829303132333435363738 |
- require 'confusion_matrix'
- require 'csv'
- require 'java'
- require 'libsvm'
- require 'PlotPackage'
- # Containing module for this library.
- #
- module SvmToolkit
- # import the required java classes - must do this before loading the ruby classes
-
- java_import 'libsvm.Parameter'
- java_import 'libsvm.Model'
- java_import 'libsvm.Problem'
- java_import 'libsvm.Node'
- java_import 'libsvm.Svm'
- java_import 'java.util.concurrent.ForkJoinPool'
- java_import 'java.util.concurrent.RecursiveTask'
- java_import 'jahuwaldt.plot.ContourPlot'
- java_import 'jahuwaldt.plot.DiamondSymbol'
- java_import 'jahuwaldt.plot.PlotDatum'
- java_import 'jahuwaldt.plot.PlotPanel'
- java_import 'jahuwaldt.plot.PlotRun'
- end
- # finally require the ruby code which extends the Java classes
- require 'svm_toolkit/evaluators'
- require 'svm_toolkit/model'
- require 'svm_toolkit/node'
- require 'svm_toolkit/parameter'
- require 'svm_toolkit/problem'
- require 'svm_toolkit/svm'
|