Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Commit cb8f6b66 authored by Anze Vavpetic's avatar Anze Vavpetic
Browse files

minor fix in handling discretization intervals param

parent cb212709
......@@ -28,7 +28,6 @@ class ILP_Converter(Converter):
self.settings = kwargs.pop('settings', {}) if kwargs else {}
self.discr_intervals = kwargs.pop('discr_intervals', {}) if kwargs else {}
self.dump = kwargs.pop('dump', False) if kwargs else False
print self.dump
Converter.__init__(self, *args, **kwargs)
def user_settings(self):
......
......@@ -27,12 +27,12 @@ def mysql_db_context_finished(postdata, input_dict, output_dict):
def mysql_rsd_converter(input_dict):
dump = input_dict['dump'] == 'true'
rsd = RSD_Converter(input_dict['context'], discr_intervals=input_dict.get('discr_intervals', {}), dump=dump)
rsd = RSD_Converter(input_dict['context'], discr_intervals=input_dict['discr_intervals'] or {}, dump=dump)
return {'examples' : rsd.all_examples(), 'bk' : rsd.background_knowledge()}
def mysql_aleph_converter(input_dict):
dump = input_dict['dump'] == 'true'
aleph = Aleph_Converter(input_dict['context'], target_att_val=input_dict['target_att_val'], discr_intervals=input_dict.get('discr_intervals', {}), dump=dump)
aleph = Aleph_Converter(input_dict['context'], target_att_val=input_dict['target_att_val'], discr_intervals=input_dict['discr_intervals'] or {}, dump=dump)
return {'pos_examples' : aleph.positive_examples(), 'neg_examples' : aleph.negative_examples(), 'bk' : aleph.background_knowledge()}
def mysql_query_to_odt(input_dict):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment