Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
tid-regression-model / tests / test_features.py
Size: Mime:
from regression_model.config.core import config
from regression_model.processing.features import TemporalMapper


def test_temporal_var_transformer(sample_input_data):
    # when
    tm = TemporalMapper(config.model_conf.temporal_vars, config.model_conf.ref_var)
    res = tm.fit_transform(sample_input_data)
    # then
    yrbuilt_obt = res["YearBuilt"].iat[0]
    assert yrbuilt_obt == 49  # (2010-1961)