MCPcopy Create free account
hub / github.com/catboost/catboost / get_features_data_from_file

Function get_features_data_from_file

catboost/python-package/ut/medium/test.py:925–928  ·  view source on GitHub ↗
(data_file, drop_columns, cat_feature_indices, order='C')

Source from the content-addressed store, hash-verified

923
924
925def get_features_data_from_file(data_file, drop_columns, cat_feature_indices, order='C'):
926 data_matrix_from_file = pd.read_csv(data_file, header=None, dtype=str, delimiter='\t')
927 data_matrix_from_file.drop(drop_columns, axis=1, inplace=True)
928 return get_features_data_from_matrix(np.array(data_matrix_from_file), cat_feature_indices, order)
929
930
931def test_features_data_with_empty_objects():

Callers 1

test_fit_dataFunction · 0.85

Calls 3

dropMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected