|
@@ -1,7 +1,6 @@
|
|
|
from chia import containers, instrumentation
|
|
|
-from chia.components import classifiers, interactors
|
|
|
from chia import helpers
|
|
|
-from chillax import chillax_classifier, chillax_extrapolator, noisy_oracle
|
|
|
+from chillax import methods
|
|
|
|
|
|
import config as pcfg
|
|
|
import argparse
|
|
@@ -20,12 +19,8 @@ def main(config_files):
|
|
|
] + [helpers.get_user_config()]
|
|
|
config = pcfg.ConfigurationSet(*configs)
|
|
|
|
|
|
- classifiers.ClassifierFactory.name_to_class_mapping.update(
|
|
|
- {"chillax": chillax_classifier.CHILLAXKerasHC}
|
|
|
- )
|
|
|
- interactors.InteractorFactory.name_to_class_mapping.update(
|
|
|
- {"noisy_oracle": noisy_oracle.NoisyOracleInteractor}
|
|
|
- )
|
|
|
+ # Need to register our fancy new methods
|
|
|
+ methods.update_chia_factories()
|
|
|
|
|
|
obs = instrumentation.NamedObservable("Experiment")
|
|
|
|
|
@@ -39,7 +34,7 @@ def main(config_files):
|
|
|
|
|
|
# Now, build the extrapolator
|
|
|
if "extrapolator" in config.keys(levels=1):
|
|
|
- extrapolator = chillax_extrapolator.CHILLAXExtrapolatorFactory.create(
|
|
|
+ extrapolator = methods.CHILLAXExtrapolatorFactory.create(
|
|
|
config["extrapolator"],
|
|
|
knowledge_base=experiment_container.knowledge_base,
|
|
|
observers=experiment_container.observers,
|