navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.nbl.smat.Lookup2d
          • Lookup2d
            • Lookup2d.__init__()

    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 a LookupDistDotBuilder.

    Parameters:
    • digitizer0 (Digitizer) – How to convert continuous values into an index for the first axis.

    • digitizer1 (Digitizer) – How to convert continuous values into an index for the second axis.

    • cells (np.ndarray) – Values to look up in the table.

    __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 a LookupDistDotBuilder.

    Parameters:
    • digitizer0 (Digitizer) – How to convert continuous values into an index for the first axis.

    • digitizer1 (Digitizer) – How to convert continuous values into an index for the second axis.

    • cells (np.ndarray) – Values to look up in the table.

    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.

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.