add unit tests for convert_to_model_format
and fix numpy deprecation (Creating an ndarray from ragged nested sequences)
#9932
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:enhancement ✨
Additions of new features or changes to existing ones, should be doable in a single PR
What problem are you trying to solve?
Numpy >= 1.19 will complain about creating arrays from lists with different shape, e.g.
This happens whenever we collect our
Features
in aFeatureArray
(but not inside ofFeatureArray
but when we initialize theFeatureArray
with annp.array( [ .... features ] )
).What's your suggested solution?
in
model_data_utils.py
andmodel_data.py
:dtype=object
when combining irregular shaped arrays into one array (dtype=None
otherwise)FeatureArray
that'll fail because of the changed dtypesExamples (if relevant)
No response
Is anything blocking this from being implemented? (if relevant)
No response
Definition of Done
convert_to_data_format
(which uses_feature_arrays_for_attribute
which contains some of theFeatureArray
instantiations causing the warning)common.py
The text was updated successfully, but these errors were encountered: