navis.nbl.smat.Lookup2d¶
- class navis.nbl.smat.Lookup2d(axis0, axis1, cells)[source]¶
Convenience class inheriting from LookupNd for the common 2D float case. Provides IO with pandas DataFrames.
2D lookup table for convert NBLAST matches to scores.
Commonly read from a
pandas.DataFrame
or trained on data using aLookupDistDotBuilder
.- Parameters:
- __init__(axis0, axis1, cells)[source]¶
2D lookup table for convert NBLAST matches to scores.
Commonly read from a
pandas.DataFrame
or trained on data using aLookupDistDotBuilder
.
Methods
__init__
(axis0, axis1, cells)2D lookup table for convert NBLAST matches to scores.
from_dataframe
(df)to_dataframe
()Convert the lookup table into a
pandas.DataFrame
.