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.
@@ -1,3 +1,7 @@
1
1
  == 1.0.0 / 2008-01-08
2
2
 
3
- * Initial release
3
+ * Initial release
4
+
5
+ == 1.0.1 / 2008-01-08
6
+
7
+ * Updated release with new code actually checked into rubyforge.
@@ -3,5 +3,5 @@ Dir[File.join(File.dirname(__FILE__), "basset", "*.rb")].each do |file|
3
3
  end
4
4
 
5
5
  module Basset
6
- VERSION = "1.0.0"
6
+ VERSION = "1.0.1"
7
7
  end
@@ -1,13 +1,8 @@
1
1
  module Basset
2
2
  # Class for running evaluation tests on a classifier, and document
3
3
  # representation.
4
- # There's probably a much better way to write this, but for now here's the gist:
5
- # When you initialize pass in an args hash and a block. For now the args hash should just be:
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.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: