NeptuneUnsupportedType: You're attempting to log a type that is not directly supported by Neptune (<type_of_the_object>).
You're attempting to log a value or object of a type that is not yet directly supported by Neptune.
0.x versions of Neptune, unsupported types are implicitly cast to
string without raising any warnings or exceptions. To avoid situations where your metadata is not logged as you expect, as of version
1.0, you need to explicitly log your value as a supported type. Otherwise, the unsupported value is skipped and Neptune prints a warning.
In order to log your value or object to Neptune, you need to convert it to a supported type – such as a string or float.
Converting to string#
To convert your value or object, use some string representation method, such as
For more complex structures, you can use the utility function
stringify_unsupported() to convert values of unsupported types to strings.
Does not work
Sometimes your metric may not be calculated correctly, which might result in the value
None. Neptune will skip unsupported values when creating a series with
You can also
- convert this value to for example
0so that it can be logged to Neptune
add a check to filter out problematic values from your series:
Logging figures or charts#
The object type you're trying to log may not be directly supported by Neptune.
Try the following:
- Convert the object to a supported format, such as a Matplotlib figure.
Upload the object as HTML: