inputs parameters for prepare_session method :param metric: metric to calculate :type metric: int :param classifier: classifier to use :type classifier: int :param file: file to load model :type file: str :param other_info: additional information :type other_info: s
| 30 | |
| 31 | |
| 32 | class BrainFlowModelParams(object): |
| 33 | """ inputs parameters for prepare_session method |
| 34 | |
| 35 | :param metric: metric to calculate |
| 36 | :type metric: int |
| 37 | :param classifier: classifier to use |
| 38 | :type classifier: int |
| 39 | :param file: file to load model |
| 40 | :type file: str |
| 41 | :param other_info: additional information |
| 42 | :type other_info: str |
| 43 | :param output_name: output node name |
| 44 | :type output_name: str |
| 45 | :param max_array_size: max array size to preallocate |
| 46 | :type max_array_size: int |
| 47 | """ |
| 48 | |
| 49 | def __init__(self, metric, classifier) -> None: |
| 50 | self.metric = metric |
| 51 | self.classifier = classifier |
| 52 | self.file = '' |
| 53 | self.other_info = '' |
| 54 | self.output_name = '' |
| 55 | self.max_array_size = 8192 |
| 56 | |
| 57 | def to_json(self) -> None: |
| 58 | return json.dumps(self, default=lambda o: o.__dict__, |
| 59 | sort_keys=True, indent=4) |
| 60 | |
| 61 | |
| 62 | class MLModuleDLL(object): |