Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniruc <niruc@NIRUC-M6600.redmond.corp.microsoft.com>2013-04-05 22:20:45 +0400
committerniruc <niruc@NIRUC-M6600.redmond.corp.microsoft.com>2013-04-05 22:20:45 +0400
commit29a02cc36e25579f1e37366a3aef95809113ec9d (patch)
tree8a2587a3f4971adb06a84a77a8ec631d0df4b90c /vowpalwabbit/vw.h
parent571f1f36679811b1c170a76fb0487a5c6dba177d (diff)
cleanup of the vw.exe project files
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r--vowpalwabbit/vw.h40
1 files changed, 2 insertions, 38 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h
index edf179f2..9dbf4db2 100644
--- a/vowpalwabbit/vw.h
+++ b/vowpalwabbit/vw.h
@@ -11,31 +11,9 @@ license as described in the file LICENSE.
#include "hash.h"
namespace VW {
- /*
- You must call initialize to get access to the library. The argument is a vew commandline.
- Caveats:
- (1) Some commandline parameters do not make sense as a library.
- (2) The code is not yet reentrant.
- */
- vw* initialize(string s);
-
- void cmd_string_replace_value( string& cmd, string flag_to_replace, string new_value );
-
- char** get_argv_from_string(string s, int& argc);
-
- /*
- Call finish() after you are done with the vw instance. This cleans up memory usage.
- */
- void finish(vw& all);
-
- //The next commands deal with creating examples. Caution: VW does not all allow creation of many examples at once by default. You can adjust the exact number by tweaking ring_size.
-
- /* The simplest of two ways to create an example. An example_line is the literal line in a VW-format datafile.
- */
- example* read_example(vw& all, char* example_line);
-
- //The more complex way to create an example.
+ // An example_line is the literal line in a VW-format datafile.
+ // The more complex way to create an example.
typedef pair< unsigned char, vector<feature> > feature_space; //just a helper definition.
struct primitive_feature_space { //just a helper definition.
unsigned char name;
@@ -67,20 +45,6 @@ namespace VW {
return (uint32_t)(all.p->hasher(ss,u) & all.parse_mask);
}
- //after you create and fill feature_spaces, get an example with everything filled in.
- example* import_example(vw& all, primitive_feature_space* features, size_t len);
- example* import_example(vw& all, vector< feature_space > ec_info);
- void parse_example_label(vw&all, example&ec, string label);
- example* new_unused_example(vw& all);
- void add_constant_feature(vw& all, example*ec);
-
- void add_label(example* ec, float label, float weight = 1, float base = 0);
- //notify VW that you are done with the example.
- void finish_example(vw& all, example* ec);
-
- primitive_feature_space* export_example(void* e, size_t& len);
- void releaseFeatureSpace(primitive_feature_space* features, size_t len);
-
inline float get_weight(vw& all, uint32_t index)
{ return all.reg.weight_vector[(index * all.reg.stride) & all.reg.weight_mask];}