bitorch.models.model_hub.get_matching_row¶
- bitorch.models.model_hub.get_matching_row(version_table: DataFrame, model_kwargs: dict) DataFrame [source]¶
searches the version table dataframe for a row that matches model kwargs
- Parameters:
version_table (column of) – the dataframe to search in
model_kwargs (dict) – the dict to search for. does not have to have key-value-pairs of each
version_table –
subset (i.e. can be) –
- Returns:
row with values in model_kwargs.keys() columns that are equal to model_kwargs values. if not existent, returns an empty dataframe.
- Return type:
pandas.DataFrame