Featurizing Time Series

Functions used to transform time series into a dataframe that can be used to create tabular dataloaders.

In this case we are using tsfresh that is one of the most widely known libraries used to create features from time series. You can get more details about this library here: https://tsfresh.readthedocs.io/en/latest/


source

get_ts_features

 get_ts_features (X:Union[numpy.ndarray,torch.Tensor],
                  y:Union[NoneType,numpy.ndarray,torch.Tensor]=None,
                  features:Union[str,dict]='min',
                  n_jobs:Optional[int]=None, **kwargs)

Args: X: np.array or torch.Tesnor of shape [samples, dimensions, timesteps]. y: Not required for unlabeled data. Otherwise, you need to pass it. features: ‘min’, ‘efficient’, ‘all’, or a dictionary. Be aware that ‘efficient’ and ‘all’ may required substantial memory and time.

dsid = 'NATOPS'
X, y, splits = get_UCR_data(dsid, return_split=False)
X.shape
(360, 24, 51)

There are 3 levels of fatures you can extract: ‘min’, ‘efficient’ and ‘all’. I’d encourage you to start with min as feature creation may take a long time.

In addition to this, you can pass a dictionary to build the desired features (see tsfresh documentation in the link above).

ts_features_df = get_ts_features(X, y)
ts_features_df.shape
Feature Extraction: 100%|██████████| 40/40 [00:09<00:00,  4.00it/s]
(360, 241)

The ‘min’ set creates a dataframe with 8 features per channel + 1 per target (total 193) for each time series sample (360).

cont_names = ts_features_df.columns[:-1]
y_names = 'target'
dls = get_tabular_dls(ts_features_df, splits=splits, cont_names=cont_names, y_names=y_names)
dls.show_batch()
0__sum_values 0__median 0__mean 0__length 0__standard_deviation 0__variance 0__root_mean_square 0__maximum 0__absolute_maximum 0__minimum 1__sum_values 1__median 1__mean 1__length 1__standard_deviation 1__variance 1__root_mean_square 1__maximum 1__absolute_maximum 1__minimum 2__sum_values 2__median 2__mean 2__length 2__standard_deviation 2__variance 2__root_mean_square 2__maximum 2__absolute_maximum 2__minimum 3__sum_values 3__median 3__mean 3__length 3__standard_deviation 3__variance 3__root_mean_square 3__maximum 3__absolute_maximum 3__minimum 4__sum_values 4__median 4__mean 4__length 4__standard_deviation 4__variance 4__root_mean_square 4__maximum 4__absolute_maximum 4__minimum 5__sum_values 5__median 5__mean 5__length 5__standard_deviation 5__variance 5__root_mean_square 5__maximum 5__absolute_maximum 5__minimum 6__sum_values 6__median 6__mean 6__length 6__standard_deviation 6__variance 6__root_mean_square 6__maximum 6__absolute_maximum 6__minimum 7__sum_values 7__median 7__mean 7__length 7__standard_deviation 7__variance 7__root_mean_square 7__maximum 7__absolute_maximum 7__minimum 8__sum_values 8__median 8__mean 8__length 8__standard_deviation 8__variance 8__root_mean_square 8__maximum 8__absolute_maximum 8__minimum 9__sum_values 9__median 9__mean 9__length 9__standard_deviation 9__variance 9__root_mean_square 9__maximum 9__absolute_maximum 9__minimum 10__sum_values 10__median 10__mean 10__length 10__standard_deviation 10__variance 10__root_mean_square 10__maximum 10__absolute_maximum 10__minimum 11__sum_values 11__median 11__mean 11__length 11__standard_deviation 11__variance 11__root_mean_square 11__maximum 11__absolute_maximum 11__minimum 12__sum_values 12__median 12__mean 12__length 12__standard_deviation 12__variance 12__root_mean_square 12__maximum 12__absolute_maximum 12__minimum 13__sum_values 13__median 13__mean 13__length 13__standard_deviation 13__variance 13__root_mean_square 13__maximum 13__absolute_maximum 13__minimum 14__sum_values 14__median 14__mean 14__length 14__standard_deviation 14__variance 14__root_mean_square 14__maximum 14__absolute_maximum 14__minimum 15__sum_values 15__median 15__mean 15__length 15__standard_deviation 15__variance 15__root_mean_square 15__maximum 15__absolute_maximum 15__minimum 16__sum_values 16__median 16__mean 16__length 16__standard_deviation 16__variance 16__root_mean_square 16__maximum 16__absolute_maximum 16__minimum 17__sum_values 17__median 17__mean 17__length 17__standard_deviation 17__variance 17__root_mean_square 17__maximum 17__absolute_maximum 17__minimum 18__sum_values 18__median 18__mean 18__length 18__standard_deviation 18__variance 18__root_mean_square 18__maximum 18__absolute_maximum 18__minimum 19__sum_values 19__median 19__mean 19__length 19__standard_deviation 19__variance 19__root_mean_square 19__maximum 19__absolute_maximum 19__minimum 20__sum_values 20__median 20__mean 20__length 20__standard_deviation 20__variance 20__root_mean_square 20__maximum 20__absolute_maximum 20__minimum 21__sum_values 21__median 21__mean 21__length 21__standard_deviation 21__variance 21__root_mean_square 21__maximum 21__absolute_maximum 21__minimum 22__sum_values 22__median 22__mean 22__length 22__standard_deviation 22__variance 22__root_mean_square 22__maximum 22__absolute_maximum 22__minimum 23__sum_values 23__median 23__mean 23__length 23__standard_deviation 23__variance 23__root_mean_square 23__maximum 23__absolute_maximum 23__minimum target
0 -29.398621 -0.578626 -0.576444 51.0 0.019595 0.000384 0.576777 -0.536114 0.606751 -0.606751 -88.761322 -1.745473 -1.740418 51.0 0.033961 0.001153 1.740749 -1.659181 1.779713 -1.779713 -35.539612 -0.696636 -0.696855 51.0 0.005860 0.000034 0.696880 -0.685844 0.710908 -0.710908 63.889797 0.837208 1.252741 51.0 0.676822 0.458088 1.423885 2.169677 2.169677 0.536361 -54.103661 -1.758527 -1.060856 51.0 0.952467 0.907193 1.425696 0.619366 1.832052 -1.832052 -25.470938 -0.562629 -0.499430 51.0 0.176602 0.031188 0.529735 -0.166668 0.659942 -0.659942 -33.909939 -0.666688 -0.664901 51.0 0.013168 0.000173 0.665031 -0.643999 0.682598 -0.682598 -39.194389 -0.766594 -0.768517 51.0 0.007046 0.000050 0.768550 -0.750228 0.782717 -0.782717 -9.894929 -0.191213 -0.194018 51.0 0.008862 0.000079 0.194220 -0.182825 0.210663 -0.210663 41.573109 0.658693 0.815159 51.0 0.227995 0.051982 0.846443 1.144142 1.144142 0.601647 -26.870213 -0.801317 -0.526867 51.0 0.410643 0.168628 0.667994 0.183081 0.862615 -0.862615 -4.248524 -0.096245 -0.083304 51.0 0.033176 0.001101 0.089668 -0.021126 0.121141 -0.121141 -33.603584 -0.660318 -0.658894 51.0 0.016815 0.000283 0.659108 -0.626267 0.684841 -0.684841 -70.926521 -1.409798 -1.390716 51.0 0.031278 0.000978 1.391068 -1.337275 1.423652 -1.423652 -26.984289 -0.529285 -0.529104 51.0 0.005923 0.000035 0.529137 -0.517306 0.548614 -0.548614 56.133301 0.789974 1.100653 51.0 0.483293 0.233572 1.202085 1.757948 1.757948 0.587645 -45.478088 -1.421026 -0.891727 51.0 0.739772 0.547262 1.158637 0.386504 1.509923 -1.509923 -17.145500 -0.387209 -0.336186 51.0 0.127724 0.016313 0.359631 -0.108017 0.469502 -0.469502 -25.565697 -0.502589 -0.501288 51.0 0.016613 0.000276 0.501563 -0.465890 0.535957 -0.535957 -77.823814 -1.519193 -1.525957 51.0 0.028265 0.000799 1.526219 -1.468685 1.564035 -1.564035 -36.996349 -0.727857 -0.725419 51.0 0.007882 0.000062 0.725461 -0.705429 0.735931 -0.735931 58.453831 0.779782 1.146154 51.0 0.682839 0.466269 1.334143 2.093526 2.093526 0.433132 -52.249134 -1.582441 -1.024493 51.0 0.815997 0.665852 1.309747 0.419112 1.718448 -1.718448 -22.941730 -0.449813 -0.449838 51.0 0.179541 0.032235 0.484344 -0.149044 0.718254 -0.718254 2.0
1 -22.630985 -0.572027 -0.443745 51.0 0.548965 0.301363 0.705884 0.844384 1.284441 -1.284441 -43.583847 -1.497262 -0.854585 51.0 1.019406 1.039188 1.330227 1.096710 1.692231 -1.692231 -31.147585 -0.398927 -0.610737 51.0 0.360847 0.130210 0.709373 -0.256470 1.562690 -1.562690 35.902119 0.479088 0.703963 51.0 0.365270 0.133422 0.793087 1.559241 1.559241 0.320613 -26.475592 -1.411000 -0.519129 51.0 1.250764 1.564410 1.354218 1.246734 1.762012 -1.762012 -34.175106 -0.647045 -0.670100 51.0 0.273988 0.075069 0.723950 -0.189910 1.339854 -1.339854 -25.383873 -0.599582 -0.497723 51.0 0.304314 0.092607 0.583383 0.198417 0.860741 -0.860741 -23.190578 -0.632231 -0.454717 51.0 0.267774 0.071703 0.527703 0.086810 0.735903 -0.735903 -9.272245 0.044390 -0.181809 51.0 0.310334 0.096307 0.359668 0.103880 0.687320 -0.687320 33.800453 0.639043 0.662754 51.0 0.155807 0.024276 0.680822 0.971393 0.971393 0.338048 -20.350363 -0.685427 -0.399027 51.0 0.401511 0.161211 0.566068 0.388883 0.798647 -0.798647 -22.385489 -0.310659 -0.438931 51.0 0.202867 0.041155 0.483545 -0.223507 0.780465 -0.780465 -23.431786 -0.607775 -0.459447 51.0 0.502495 0.252501 0.680876 0.557547 1.097538 -1.097538 -35.239632 -1.173477 -0.690973 51.0 0.790543 0.624958 1.049953 0.850109 1.334061 -1.334061 -23.722792 -0.263811 -0.465153 51.0 0.304623 0.092795 0.556024 -0.096469 1.355410 -1.355410 36.532707 0.576822 0.716328 51.0 0.285204 0.081341 0.771016 1.347809 1.347809 0.321302 -23.286812 -1.098079 -0.456604 51.0 0.934937 0.874106 1.040478 0.973006 1.405902 -1.405902 -31.214712 -0.552194 -0.612053 51.0 0.146669 0.021512 0.629381 -0.445301 1.042179 -1.042179 -23.984716 -0.675121 -0.470289 51.0 0.554180 0.307116 0.726834 0.807535 1.182987 -1.182987 -39.006611 -1.346193 -0.764835 51.0 0.884366 0.782103 1.169220 1.003716 1.507433 -1.507433 -28.776979 -0.436710 -0.564255 51.0 0.328655 0.108014 0.652991 -0.268483 1.373182 -1.373182 33.181316 0.482228 0.650614 51.0 0.366002 0.133957 0.746496 1.554717 1.554717 0.254808 -25.558233 -1.347874 -0.501142 51.0 1.110295 1.232755 1.218153 1.149943 1.741076 -1.741076 -33.443592 -0.659850 -0.655757 51.0 0.246830 0.060925 0.700673 -0.250632 1.340311 -1.340311 6.0
2 -35.085182 -0.687561 -0.687945 51.0 0.030869 0.000953 0.688637 -0.624283 0.739868 -0.739868 -106.435272 -2.126637 -2.086966 51.0 0.089233 0.007963 2.088873 -1.959578 2.215342 -2.215342 -43.562584 -0.854689 -0.854168 51.0 0.032274 0.001042 0.854778 -0.801072 0.912399 -0.912399 73.886467 1.213113 1.448754 51.0 0.694268 0.482008 1.606517 2.342902 2.342902 0.642018 -67.402786 -2.043274 -1.321623 51.0 1.021520 1.043502 1.670386 0.217647 2.288412 -2.288412 -40.294270 -0.799205 -0.790084 51.0 0.048503 0.002353 0.791571 -0.688059 0.888159 -0.888159 -34.629044 -0.681434 -0.679001 51.0 0.017385 0.000302 0.679223 -0.649223 0.703762 -0.703762 -40.258858 -0.804071 -0.789389 51.0 0.033163 0.001100 0.790086 -0.741303 0.842110 -0.842110 -12.998519 -0.267240 -0.254873 51.0 0.017719 0.000314 0.255488 -0.224532 0.273925 -0.273925 47.912884 0.805694 0.939468 51.0 0.229189 0.052528 0.967020 1.233679 1.233679 0.697387 -28.587210 -0.880814 -0.560534 51.0 0.403328 0.162674 0.690559 0.038331 0.921428 -0.921428 -10.081242 -0.202227 -0.197671 51.0 0.030237 0.000914 0.199971 -0.156339 0.284775 -0.284775 -33.949532 -0.670309 -0.665677 51.0 0.022919 0.000525 0.666072 -0.629390 0.697200 -0.697200 -85.588051 -1.724138 -1.678197 51.0 0.080795 0.006528 1.680141 -1.563966 1.791635 -1.791635 -36.548447 -0.725060 -0.716636 51.0 0.030728 0.000944 0.717295 -0.671330 0.760870 -0.760870 65.181526 1.113361 1.278069 51.0 0.494449 0.244479 1.370380 1.934985 1.934985 0.748902 -54.790508 -1.635758 -1.074324 51.0 0.817957 0.669053 1.350268 0.139169 1.839433 -1.839433 -28.428947 -0.573270 -0.557430 51.0 0.053855 0.002900 0.560026 -0.439413 0.630352 -0.630352 -26.714603 -0.519391 -0.523816 51.0 0.032224 0.001038 0.524806 -0.489540 0.659033 -0.659033 -93.493767 -1.865099 -1.833211 51.0 0.092432 0.008544 1.835540 -1.700841 2.010093 -2.010093 -43.577209 -0.860299 -0.854455 51.0 0.049561 0.002456 0.855891 -0.796042 1.014816 -1.014816 65.893486 1.051441 1.292029 51.0 0.685999 0.470595 1.462851 2.178514 2.178514 0.574974 -64.151787 -1.856631 -1.257878 51.0 0.804017 0.646444 1.492884 -0.037161 2.008020 -2.008020 -39.252415 -0.786807 -0.769655 51.0 0.054600 0.002981 0.771589 -0.582144 0.898071 -0.898071 3.0
3 9.418392 0.124306 0.184674 51.0 0.683525 0.467206 0.708033 1.098620 1.098620 -0.619085 -65.183624 -1.598239 -1.278110 51.0 0.931468 0.867632 1.581518 0.194134 2.234432 -2.234432 -41.886803 -0.976904 -0.821310 51.0 0.252251 0.063631 0.859174 -0.396303 1.147354 -1.147354 45.166958 0.801148 0.885627 51.0 0.278827 0.077744 0.928482 1.635586 1.635586 0.577137 -35.295097 -1.093421 -0.692061 51.0 1.567398 2.456736 1.713384 1.325327 2.416220 -2.416220 -19.785007 -0.294643 -0.387941 51.0 0.282500 0.079806 0.479901 -0.008022 0.944945 -0.944945 -28.304108 -0.693464 -0.554982 51.0 0.202652 0.041068 0.590824 -0.242434 0.741845 -0.741845 -36.350716 -0.670180 -0.712759 51.0 0.144370 0.020843 0.727233 -0.523174 0.890112 -0.890112 -28.392370 -0.522761 -0.556713 51.0 0.107739 0.011608 0.567042 -0.435334 0.710886 -0.710886 38.783321 0.658475 0.760457 51.0 0.165045 0.027240 0.778161 1.025254 1.025254 0.573761 -29.159790 -0.807073 -0.571761 51.0 0.451058 0.203453 0.728260 0.058212 1.089511 -1.089511 -0.357431 0.210966 -0.007008 51.0 0.359132 0.128976 0.359200 0.358109 0.519043 -0.519043 -6.840534 -0.255334 -0.134128 51.0 0.504682 0.254704 0.522201 0.582558 0.693457 -0.693457 -55.873280 -1.168818 -1.095554 51.0 0.563111 0.317094 1.231801 -0.219940 1.721503 -1.721503 -37.602516 -0.815972 -0.737304 51.0 0.176043 0.030991 0.758029 -0.360776 0.927193 -0.927193 43.445599 0.848623 0.851875 51.0 0.218035 0.047539 0.879335 1.345085 1.345085 0.596721 -33.225483 -1.050173 -0.651480 51.0 1.146453 1.314353 1.318628 0.890806 1.963266 -1.963266 -12.263644 -0.319137 -0.240464 51.0 0.276771 0.076602 0.366640 0.244209 0.701782 -0.701782 -1.089832 -0.055650 -0.021369 51.0 0.549241 0.301665 0.549656 0.656405 0.802634 -0.802634 -58.871620 -1.318070 -1.154346 51.0 0.793757 0.630050 1.400915 0.036103 2.034981 -2.034981 -38.605354 -0.873019 -0.756968 51.0 0.309986 0.096091 0.817980 -0.183816 1.145963 -1.145963 44.849518 0.865092 0.879402 51.0 0.278859 0.077762 0.922557 1.511787 1.511787 0.490558 -35.374996 -1.168080 -0.693627 51.0 1.392385 1.938735 1.555588 1.122289 2.264597 -2.264597 -23.718605 -0.533045 -0.465071 51.0 0.283010 0.080095 0.544413 0.070285 0.913923 -0.913923 6.0
4 0.670717 -0.551674 0.013151 51.0 0.796336 0.634151 0.796444 1.303428 1.303428 -0.740258 -82.721443 -2.117861 -1.621989 51.0 0.745800 0.556218 1.785236 -0.325693 2.317141 -2.317141 -42.753490 -0.679642 -0.838304 51.0 0.347571 0.120805 0.907501 -0.450540 1.606419 -1.606419 43.941456 0.675603 0.861597 51.0 0.571390 0.326487 1.033845 2.105319 2.105319 0.364709 -54.047619 -2.158519 -1.059757 51.0 1.451326 2.106348 1.797063 1.128832 2.503777 -2.503777 -8.701278 -0.097304 -0.170613 51.0 0.254706 0.064875 0.306568 0.143676 0.995945 -0.995945 -25.513714 -0.696055 -0.500269 51.0 0.274384 0.075287 0.570575 0.089958 0.745964 -0.745964 -37.482643 -0.790602 -0.734954 51.0 0.116809 0.013644 0.744178 -0.541465 0.878685 -0.878685 -33.195599 -0.672431 -0.650894 51.0 0.199584 0.039834 0.680806 -0.429070 0.989809 -0.989809 34.543270 0.566918 0.677319 51.0 0.293252 0.085997 0.738077 1.267009 1.267009 0.387009 -30.752882 -0.775993 -0.602998 51.0 0.315380 0.099464 0.680493 0.063736 1.075059 -1.075059 5.405560 0.286917 0.105991 51.0 0.283277 0.080246 0.302456 0.384380 0.392310 -0.392310 -10.194630 -0.575963 -0.199895 51.0 0.608274 0.369997 0.640277 0.946359 0.946359 -0.750195 -67.181175 -1.644588 -1.317278 51.0 0.480866 0.231232 1.402303 -0.524218 1.829902 -1.829902 -42.235485 -0.693468 -0.828147 51.0 0.266756 0.071159 0.870049 -0.607596 1.443514 -1.443514 42.286137 0.849937 0.829140 51.0 0.445894 0.198822 0.941432 1.798162 1.798162 0.406039 -45.729931 -1.668248 -0.896665 51.0 1.043643 1.089190 1.375936 0.752602 2.014132 -2.014132 -2.545863 0.035224 -0.049919 51.0 0.176097 0.031010 0.183036 0.169495 0.488377 -0.488377 -7.721382 -0.629895 -0.151400 51.0 0.731868 0.535631 0.747364 1.081553 1.081553 -0.841546 -73.237610 -1.826482 -1.436032 51.0 0.668636 0.447074 1.584065 -0.235637 2.140610 -2.140610 -44.032135 -0.673831 -0.863375 51.0 0.386634 0.149486 0.945993 -0.419474 1.715174 -1.715174 41.510166 0.733873 0.813925 51.0 0.506757 0.256803 0.958789 1.993738 1.993738 0.362309 -50.167858 -1.763661 -0.983684 51.0 1.247509 1.556279 1.588683 0.955917 2.361580 -2.361580 -8.757638 -0.146574 -0.171718 51.0 0.236743 0.056047 0.292463 0.202188 0.984318 -0.984318 6.0
5 -50.560036 -0.925159 -0.991373 51.0 0.970520 0.941910 1.387347 0.800761 2.398621 -2.398621 -30.233727 -0.178814 -0.592818 51.0 1.103251 1.217162 1.252436 0.972976 2.095890 -2.095890 -42.399975 -0.641855 -0.831372 51.0 0.369349 0.136419 0.909724 -0.293571 1.665465 -1.665465 39.197685 0.735326 0.768582 51.0 0.972865 0.946467 1.239833 2.223790 2.223790 -0.900167 -25.861439 0.006240 -0.507087 51.0 1.103717 1.218190 1.214631 1.036380 2.057254 -2.057254 -54.733055 -0.955823 -1.073197 51.0 0.341752 0.116795 1.126298 -0.407128 1.797132 -1.797132 -43.710899 -0.780402 -0.857076 51.0 0.244302 0.059683 0.891215 -0.568018 1.237588 -1.237588 -16.875654 -0.136531 -0.330895 51.0 0.380901 0.145086 0.504557 0.301934 0.825958 -0.825958 -12.057025 -0.090500 -0.236412 51.0 0.246839 0.060929 0.341790 0.002809 0.739954 -0.739954 43.413063 0.779447 0.851237 51.0 0.224609 0.050449 0.880371 1.244718 1.244718 0.445537 -16.459957 -0.233873 -0.322744 51.0 0.378000 0.142884 0.497039 0.267569 0.802695 -0.802695 -29.580076 -0.443360 -0.580002 51.0 0.283071 0.080129 0.645392 -0.340970 1.223840 -1.223840 -46.450630 -0.899175 -0.910797 51.0 0.711464 0.506181 1.155739 0.568156 1.918004 -1.918004 -25.124174 -0.161948 -0.492631 51.0 0.804141 0.646643 0.943042 0.727019 1.617498 -1.617498 -31.201376 -0.434257 -0.611792 51.0 0.313101 0.098032 0.687256 -0.172693 1.229459 -1.229459 41.937992 0.793140 0.822314 51.0 0.641221 0.411164 1.042767 1.812513 1.812513 -0.339336 -21.495180 -0.052168 -0.421474 51.0 0.799914 0.639862 0.904158 0.620937 1.550453 -1.550453 -42.943439 -0.776023 -0.842028 51.0 0.225123 0.050680 0.871603 -0.285606 1.344810 -1.344810 -52.034657 -0.921795 -1.020287 51.0 0.898630 0.807537 1.359604 0.655126 2.344413 -2.344413 -27.837105 -0.061648 -0.545826 51.0 0.969040 0.939039 1.112189 0.931854 1.992733 -1.992733 -36.875374 -0.585629 -0.723047 51.0 0.349626 0.122238 0.803141 -0.215493 1.429438 -1.429438 40.247742 0.798090 0.789171 51.0 0.786085 0.617930 1.113877 1.984581 1.984581 -0.677269 -23.811928 -0.119661 -0.466901 51.0 0.912458 0.832579 1.024976 0.800261 1.841989 -1.841989 -52.909077 -1.040256 -1.037433 51.0 0.335496 0.112557 1.090332 -0.334281 1.676773 -1.676773 4.0
6 -39.833595 -0.581072 -0.781051 51.0 0.909044 0.826360 1.198499 0.568540 2.283604 -2.283604 -38.821877 -0.786507 -0.761213 51.0 0.961909 0.925269 1.226668 0.511668 1.878216 -1.878216 -38.064991 -0.843750 -0.746372 51.0 0.289446 0.083779 0.800532 -0.137036 1.416119 -1.416119 41.832554 0.615405 0.820246 51.0 0.852135 0.726135 1.182767 2.278694 2.278694 -0.571341 -46.324547 -0.797607 -0.908324 51.0 0.966797 0.934696 1.326556 0.542440 2.116034 -2.116034 -20.751741 -0.570023 -0.406897 51.0 0.581464 0.338100 0.709694 0.768066 1.202626 -1.202626 -37.311344 -0.603243 -0.731595 51.0 0.236690 0.056022 0.768930 -0.428848 1.151210 -1.151210 -24.191328 -0.593942 -0.474340 51.0 0.321964 0.103661 0.573288 0.118205 0.778171 -0.778171 -10.869180 -0.166239 -0.213121 51.0 0.118523 0.014048 0.243861 -0.055137 0.518928 -0.518928 37.055542 0.630720 0.726579 51.0 0.187477 0.035147 0.750377 1.041933 1.041933 0.511867 -27.166332 -0.715093 -0.532673 51.0 0.297583 0.088556 0.610161 0.032286 0.820952 -0.820952 -5.845339 -0.214925 -0.114614 51.0 0.219578 0.048215 0.247691 0.302756 0.333025 -0.333025 -38.241142 -0.594127 -0.749826 51.0 0.627857 0.394204 0.977979 0.256995 1.747855 -1.747855 -32.509758 -0.579769 -0.637446 51.0 0.690723 0.477098 0.939913 0.338581 1.427238 -1.427238 -26.793001 -0.502856 -0.525353 51.0 0.140510 0.019743 0.543819 -0.301202 0.999421 -0.999421 38.700047 0.607511 0.758824 51.0 0.584079 0.341148 0.957582 1.645291 1.645291 -0.209163 -37.871262 -0.758263 -0.742574 51.0 0.648642 0.420737 0.985978 0.297268 1.478050 -1.478050 -15.965348 -0.512104 -0.313046 51.0 0.436921 0.190900 0.537492 0.543558 1.049285 -1.049285 -39.408485 -0.581423 -0.772715 51.0 0.801424 0.642281 1.113270 0.497681 2.193919 -2.193919 -36.982643 -0.627740 -0.725150 51.0 0.856815 0.734132 1.122486 0.517904 1.754343 -1.754343 -31.530857 -0.578748 -0.618252 51.0 0.279074 0.077882 0.678320 -0.208244 1.305216 -1.305216 37.909523 0.533470 0.743324 51.0 0.796210 0.633951 1.089257 2.103847 2.103847 -0.552248 -39.577774 -0.742289 -0.776035 51.0 0.849310 0.721327 1.150460 0.575411 1.851035 -1.851035 -22.426970 -0.587765 -0.439745 51.0 0.553202 0.306033 0.706688 0.689770 1.236947 -1.236947 5.0
7 -36.896690 -0.912707 -0.723464 51.0 1.064085 1.132277 1.286732 0.912205 2.307096 -2.307096 -19.239029 -0.282667 -0.377236 51.0 1.052407 1.107561 1.117975 0.881856 2.153838 -2.153838 -62.821152 -1.281961 -1.231787 51.0 0.530944 0.281901 1.341343 0.098188 2.117577 -2.117577 55.359245 1.107040 1.085475 51.0 0.981749 0.963832 1.463588 2.348134 2.348134 -0.507044 -23.611309 0.024880 -0.462967 51.0 1.022359 1.045218 1.122299 0.884884 2.283836 -2.283836 -34.417664 -0.666021 -0.674856 51.0 0.336352 0.113133 0.754031 -0.017647 1.378753 -1.378753 -38.069172 -0.877256 -0.746454 51.0 0.354419 0.125613 0.826321 -0.077006 1.163693 -1.163693 -10.263086 -0.051315 -0.201237 51.0 0.370457 0.137238 0.421586 0.256480 0.847701 -0.847701 -30.174412 -0.570585 -0.591655 51.0 0.173184 0.029993 0.616481 -0.356980 1.046295 -1.046295 46.865932 0.877540 0.918940 51.0 0.188330 0.035468 0.938040 1.202289 1.202289 0.597824 -24.255749 -0.452062 -0.475603 51.0 0.309431 0.095748 0.567403 0.061571 0.980127 -0.980127 -10.561463 -0.084279 -0.207088 51.0 0.266664 0.071109 0.337631 0.100390 0.787678 -0.787678 -35.248955 -0.933832 -0.691156 51.0 0.792044 0.627334 1.051204 0.613102 1.636708 -1.636708 -16.299442 -0.262266 -0.319597 51.0 0.805276 0.648469 0.866378 0.682406 1.797832 -1.797832 -50.258915 -0.981771 -0.985469 51.0 0.327322 0.107139 1.038407 -0.382916 1.556926 -1.556926 50.633633 1.068598 0.992816 51.0 0.669171 0.447789 1.197278 1.868672 1.868672 -0.068966 -22.703091 -0.056605 -0.445159 51.0 0.739652 0.547084 0.863279 0.671985 1.762866 -1.762866 -24.762434 -0.469707 -0.485538 51.0 0.268093 0.071874 0.554636 -0.000126 0.909962 -0.909962 -38.911346 -0.915691 -0.762968 51.0 0.941245 0.885943 1.211636 0.747633 2.031039 -2.031039 -19.286667 -0.411864 -0.378170 51.0 0.938402 0.880599 1.011737 0.850090 1.990998 -1.990998 -54.983307 -1.106866 -1.078104 51.0 0.498255 0.248258 1.187673 -0.044980 1.856607 -1.856607 55.272842 1.142773 1.083781 51.0 0.912429 0.832527 1.416725 2.338898 2.338898 -0.387132 -24.889832 -0.118238 -0.488036 51.0 0.872788 0.761758 0.999969 0.686074 2.103849 -2.103849 -32.013580 -0.695968 -0.627717 51.0 0.353181 0.124737 0.720254 0.051580 1.284638 -1.284638 4.0
8 -26.011322 -0.536596 -0.510026 51.0 0.055607 0.003092 0.513048 -0.419569 0.570454 -0.570454 -92.222801 -1.791812 -1.808290 51.0 0.098298 0.009663 1.810960 -1.699334 1.995639 -1.995639 -37.869225 -0.712115 -0.742534 51.0 0.048071 0.002311 0.744088 -0.677641 0.836827 -0.836827 64.245613 1.286482 1.259718 51.0 0.586856 0.344400 1.389708 2.007180 2.007180 0.607638 -38.855114 -1.503779 -0.761865 51.0 1.135116 1.288489 1.367087 1.195478 1.817826 -1.817826 -28.189720 -0.513122 -0.552740 51.0 0.103227 0.010656 0.562296 -0.369479 0.759343 -0.759343 -27.265202 -0.548034 -0.534612 51.0 0.022753 0.000518 0.535096 -0.490623 0.572237 -0.572237 -39.857010 -0.771910 -0.781510 51.0 0.061902 0.003832 0.783958 -0.717654 0.923757 -0.923757 -6.367034 -0.115645 -0.124844 51.0 0.060107 0.003613 0.138560 -0.062456 0.225210 -0.225210 42.372810 0.886792 0.830839 51.0 0.201009 0.040405 0.854809 1.109116 1.109116 0.605396 -13.769955 -0.545444 -0.269999 51.0 0.548812 0.301195 0.611632 0.657959 0.810047 -0.810047 -11.842787 -0.255244 -0.232212 51.0 0.044901 0.002016 0.236513 -0.145291 0.307812 -0.307812 -28.094807 -0.559510 -0.550879 51.0 0.043867 0.001924 0.552622 -0.491768 0.597890 -0.597890 -73.582306 -1.460591 -1.442790 51.0 0.122198 0.014932 1.447956 -1.304898 1.658409 -1.658409 -22.921581 -0.463139 -0.449443 51.0 0.052460 0.002752 0.452494 -0.385089 0.526610 -0.526610 56.109291 1.201811 1.100182 51.0 0.445087 0.198103 1.186804 1.676672 1.676672 0.602798 -29.902466 -1.201119 -0.586323 51.0 0.950869 0.904151 1.117106 1.049786 1.495527 -1.495527 -23.161522 -0.453892 -0.454147 51.0 0.071312 0.005085 0.459712 -0.308134 0.624632 -0.624632 -30.269337 -0.606525 -0.593516 51.0 0.053951 0.002911 0.595963 -0.501898 0.661645 -0.661645 -85.624870 -1.647284 -1.678919 51.0 0.107465 0.011549 1.682355 -1.548876 1.879864 -1.879864 -26.338734 -0.505198 -0.516446 51.0 0.055644 0.003096 0.519435 -0.443595 0.624974 -0.624974 63.065834 1.133581 1.236585 51.0 0.536658 0.288002 1.348015 1.935572 1.935572 0.574532 -40.009689 -1.531141 -0.784504 51.0 1.003145 1.006301 1.273478 0.979440 1.697684 -1.697684 -26.970509 -0.520441 -0.528834 51.0 0.084388 0.007121 0.535524 -0.347588 0.714076 -0.714076 3.0
9 -24.176491 -0.488977 -0.474049 51.0 0.043168 0.001863 0.476010 -0.366197 0.527277 -0.527277 -87.327805 -1.710973 -1.712310 51.0 0.031561 0.000996 1.712601 -1.631805 1.772976 -1.772976 -21.451313 -0.408822 -0.420614 51.0 0.032761 0.001073 0.421888 -0.376194 0.493162 -0.493162 58.397629 0.748125 1.145051 51.0 0.692690 0.479820 1.338269 2.103378 2.103378 0.480623 -48.922287 -1.675132 -0.959261 51.0 0.974441 0.949535 1.367375 0.852968 1.817363 -1.817363 -29.856304 -0.640901 -0.585418 51.0 0.124195 0.015424 0.598447 -0.312080 0.750260 -0.750260 -27.958775 -0.565279 -0.548211 51.0 0.035193 0.001239 0.549340 -0.492060 0.583746 -0.583746 -37.864830 -0.732618 -0.742448 51.0 0.041091 0.001688 0.743584 -0.692059 0.802448 -0.802448 -0.649227 -0.005362 -0.012730 51.0 0.039293 0.001544 0.041304 0.035067 0.069732 -0.069732 43.424145 0.733217 0.851454 51.0 0.218725 0.047841 0.879099 1.171012 1.171012 0.632703 -21.846182 -0.721695 -0.428356 51.0 0.389760 0.151912 0.579139 0.287935 0.756129 -0.756129 -13.696244 -0.290477 -0.268554 51.0 0.049435 0.002444 0.273066 -0.169651 0.314362 -0.314362 -28.335342 -0.570419 -0.555595 51.0 0.031328 0.000981 0.556478 -0.508227 0.598616 -0.598616 -67.415817 -1.322900 -1.321879 51.0 0.020617 0.000425 1.322040 -1.252832 1.356348 -1.356348 -14.509363 -0.280158 -0.284497 51.0 0.027159 0.000738 0.285791 -0.237379 0.326241 -0.326241 54.223145 0.808409 1.063199 51.0 0.487772 0.237921 1.169749 1.747880 1.747880 0.582484 -38.194836 -1.286616 -0.748918 51.0 0.720042 0.518461 1.038913 0.589410 1.341641 -1.341641 -24.306427 -0.513999 -0.476597 51.0 0.113742 0.012937 0.489981 -0.236320 0.606179 -0.606179 -20.204275 -0.414832 -0.396162 51.0 0.036496 0.001332 0.397840 -0.328904 0.434622 -0.434622 -71.983742 -1.408678 -1.411446 51.0 0.031827 0.001013 1.411805 -1.346405 1.477625 -1.477625 -23.991568 -0.466880 -0.470423 51.0 0.027061 0.000732 0.471201 -0.430881 0.532167 -0.532167 53.270744 0.767735 1.044524 51.0 0.671843 0.451373 1.241936 2.002148 2.002148 0.376754 -38.753330 -1.399783 -0.759869 51.0 0.882002 0.777927 1.164186 0.885538 1.513484 -1.513484 -31.401262 -0.670306 -0.615711 51.0 0.152118 0.023140 0.634224 -0.286498 0.862852 -0.862852 2.0
x_cat, x_cont, yb = first(dls.train)
x_cont[:10]
tensor([[-0.8581, -0.1346, -0.8581,  ...,  0.3235,  0.5841, -0.6917],
        [-0.0406,  0.0344, -0.0406,  ..., -0.0171, -1.7253,  1.2745],
        [ 1.7966, -0.0497,  1.7966,  ..., -0.6516,  0.9802, -1.0290],
        ...,
        [ 0.2804,  0.4747,  0.2804,  ..., -0.4816, -0.3325,  0.0887],
        [-0.1472, -0.1884, -0.1472,  ..., -0.1036, -1.2258,  0.8491],
        [-0.9960, -0.6116, -0.9960,  ...,  0.4602,  3.3105, -3.0129]])