Search in sources :

Example 11 with Example

use of com.airbnb.aerosolve.core.Example in project aerosolve by airbnb.

the class ModelTransformsTest method makeExample.

private Example makeExample() {
    Example example = new Example();
    example.setContext(makeFeatureVector("guest_loc", 1.0, 2.0));
    example.addToExample(makeFeatureVector("host_loc", 3.1, 4.2));
    example.addToExample(makeFeatureVector("host_loc", 5.3, 6.4));
    return example;
}
Also used : Example(com.airbnb.aerosolve.core.Example)

Aggregations

Example (com.airbnb.aerosolve.core.Example)11 FeatureVector (com.airbnb.aerosolve.core.FeatureVector)9 Test (org.junit.Test)5 Map (java.util.Map)4 HashMap (java.util.HashMap)3 Set (java.util.Set)3 ArrayList (java.util.ArrayList)2 TDeserializer (org.apache.thrift.TDeserializer)2 DebugScoreDiffRecord (com.airbnb.aerosolve.core.DebugScoreDiffRecord)1 DebugScoreRecord (com.airbnb.aerosolve.core.DebugScoreRecord)1 KDTreeNode (com.airbnb.aerosolve.core.KDTreeNode)1 ModelRecord (com.airbnb.aerosolve.core.ModelRecord)1 HashCode (com.google.common.hash.HashCode)1 Hasher (com.google.common.hash.Hasher)1 Hashing (com.google.common.hash.Hashing)1 Config (com.typesafe.config.Config)1 BufferedReader (java.io.BufferedReader)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 InputStreamReader (java.io.InputStreamReader)1