Yilong tuffy port

This is a temporary pull request to review the changes.
From what I can see, develop has weight (which is correct), while
yilong-tuffy_port has id. yilong-tuffy_port must be fixed to have weight.

On Thu, Oct 16, 2014 at 3:05 PM, Feiran Wang <notifications@github.com>
wrote:

> In src/test/scala/unit/inference/SQLInferenceDataStoreSpec.scala:
>
> > @@ -221,8 +221,8 @@ trait SQLInferenceDataStoreSpec extends FunSpec with BeforeAndAfter { this: SQLI
> >          // Ground the graph with custom holdout
> >          val customHoldoutQuery = """
> >            INSERT INTO dd_graph_variables_holdout(variable_id)
> > -          SELECT id FROM r1 WHERE weight <= 10;"""
> > -        inferenceDataStore.groundFactorGraph(schema, Seq(factorDesc), holdoutFraction, Option(customHoldoutQuery), false, "", dbSettings, false)
> > +          SELECT id FROM r1 WHERE id <= 10;"""
> > +        inferenceDataStore.groundFactorGraph(schema, Seq(factorDesc), CalibrationSettings(holdoutFraction, Option(customHoldoutQuery), None), false, "", dbSettings, false)
>
> we do not want to use id because it's random. We want the number to be
> deterministic such that we can test on.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/HazyResearch/deepdive/pull/158/files#r18990154>.
>



-- 
Matteo Riondato, Ph.D.
Post-doc Researcher
Department of Computer Science
Stanford University