def _open_main_window(self):
        self.main_window = ModelDataView(application=self)

        model = ModelBt.create_initial_state(5, 8)
        self.main_window.set_model(model=model)

        self.main_window.configure_traits()
    def _open_main_window(self):
        self.main_window = ModelDataView(application=self)

        model = ModelBt.create_initial_state(5, 8)
        self.main_window.set_model(model=model)

        self.main_window.configure_traits()
Esempio n. 3
0
def main():
    """ Entry point for standalone testing/debugging. """

    from pyanno.models import ModelBt

    model = ModelBt.create_initial_state(5, 12)
    anno = model.generate_annotations(100)
    samples = model.sample_posterior_over_accuracy(
        anno, 50, step_optimization_nsamples=3)

    model_view = ModelBtView(model=model)
    model_view.plot_theta_samples(samples)
    model_view.configure_traits(view='traits_view')

    return model, model_view
Esempio n. 4
0
def main():
    """ Entry point for standalone testing/debugging. """

    from pyanno.models import ModelBt

    model = ModelBt.create_initial_state(5, 12)
    anno = model.generate_annotations(100)
    samples = model.sample_posterior_over_accuracy(
        anno, 50,
        step_optimization_nsamples=3)

    model_view = ModelBtView(model=model)
    model_view.plot_theta_samples(samples)
    model_view.configure_traits(view='traits_view')

    return model, model_view
Esempio n. 5
0
 def _create_model_from_dialog(cls, dialog):
     return ModelBt.create_initial_state(
         dialog.nclasses, dialog.nannotators)
Esempio n. 6
0
 def _create_model_from_dialog(cls, dialog):
     return ModelBt.create_initial_state(dialog.nclasses,
                                         dialog.nannotators)