basset 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -1
- data/lib/basset.rb +1 -1
- data/lib/basset/classification_evaluator.rb +2 -7
- metadata +1 -1
data/History.txt
CHANGED
data/lib/basset.rb
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
module Basset
|
2
2
|
# Class for running evaluation tests on a classifier, and document
|
3
3
|
# representation.
|
4
|
-
#
|
5
|
-
#
|
6
|
-
# {:output => true} or false which will tell it to output results to the console.
|
7
|
-
# The block will be a chunk of code that will later be called to read each document to be tested. The block will be
|
8
|
-
# passed a document name. The reason for doing this instead of just taking all the documents is so the evaluator
|
9
|
-
# doesn't need to keep all the documents in memory at one time. Here's an example if you had a set of files to read from:
|
10
|
-
# evaluator = ClassificationEvaluator.new()
|
4
|
+
# Takes the training_documents, which should be an array of objects that can return a vector of features (like Basset::Document)
|
5
|
+
# The args hash has two optional keys {:output => true, :folding_amount => 10} where folding_amount is the amount of cross validation.
|
11
6
|
class ClassificationEvaluator
|
12
7
|
def initialize(training_documents, args = {})
|
13
8
|
args[:output] = true unless args.has_key?(:output)
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: basset
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.1
|
7
7
|
date: 2008-01-08 00:00:00 +00:00
|
8
8
|
summary: A library for running machine learning algorithms for classification, feature selection and evaluation
|
9
9
|
require_paths:
|