You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "./build2.py", line 17, in <module>
initresult = mmb.mmb_init_model(modelRebuild=True)
File "/usr/local/lib/python2.7/dist-packages/mmbot/mmbot.py", line 712, in mmb_init_model
newdoc_cnt = self.load_model_data(exclude)
File "/usr/local/lib/python2.7/dist-packages/mmbot/mmbot.py", line 346, in load_model_data
newdocs = temp[temp['extracted_vba'].isnull()].copy()
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 2139, in __getitem__
return self._getitem_column(key)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 2146, in _getitem_column
return self._get_item_cache(key)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 1842, in _get_item_cache
values = self._data.get(item)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/internals.py", line 3843, in get
loc = self.items.get_loc(item)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexes/base.py", line 2527, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 117, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 139, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1265, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1273, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: u'extracted_vba'
The model builds fine if it doesn't already exist.
The text was updated successfully, but these errors were encountered:
Hi @enzok, the current library doesn't support adding onto the canned model, only creating entirely new models from scratch. I intentionally removed the source macro data that went into the model because there were a number of samples that had sensitive information in them and I didn't want to leak it. Among other things, some of the data contained company names and connection strings to databases with credentials etc.
I'm hoping to revisit this library soon and refactor it. I'll look at ways I can allow for adding onto the model that comes with it, without providing all the raw source data that went into building the initial model. I realize incremental updates would be helpful for users, rather than starting from scratch.
Using the following to initialize and add new samples to the default model:
Get the following error:
The model builds fine if it doesn't already exist.
The text was updated successfully, but these errors were encountered: