package org.canova.api.vector;

import org.canova.api.writable.Writable;

import java.util.Collection;

/**
 * Vectorizer of a particular type.
 * Meant for converting individual records to vectors
 *
 * @author Adam Gibson
 */
public interface Vectorizer<VECTOR_TYPE> {


    /**
     * Transform a record in to a vector
     * @param record the record to write
     * @return
     */
    VECTOR_TYPE transform(Collection<Writable> record);


}

@@ -25,16 +25,109 @@
 ector;%0A%0A
+import org.canova.api.conf.Configuration;%0Aimport org.canova.api.records.reader.RecordReader;%0A
 import o
@@ -359,16 +359,395 @@
 PE%3E %7B%0A%0A%0A
+    /**%0A     * Initialize based on a configuration%0A     * @param conf the configuration to use%0A     */%0A    void initialize(Configuration conf);%0A%0A    /**%0A     * Fit based on a record reader%0A     * @param reader%0A     */%0A    void fit(RecordReader reader);%0A%0A    /**%0A     * Fit based on a record reader%0A     * @param reader%0A     */%0A    VECTOR_TYPE fitTransform(RecordReader reader);%0A%0A
     /**%0A

add fit and tranform to vectorizer