Exemple #1
0
 def test_normalize_10_to_20(self):
     ''' Test the normalization API function from 10 to 20.
     '''
     out = tstoolbox.normalization(min_limit=10,
                                   max_limit=20,
                                   input_ts='tests/data_sunspot.csv')
     assert_frame_equal(out, self.data_10_to_20)
 def test_normalize(self):
     """Test the normalization API function using the zscore method."""
     out = tstoolbox.normalization(mode="zscore",
                                   input_ts="tests/data_sunspot.csv")
     assert_frame_equal(out,
                        self.data_zscore,
                        check_exact=False,
                        check_column_type=False,
                        atol=1e-4)
 def test_pct_rank(self):
     """Test the normalization API function using the pct_rank method."""
     out = tstoolbox.normalization(mode="pct_rank",
                                   input_ts="tests/data_sunspot.csv")
     assert_frame_equal(out, self.data_pct_rank)
 def test_normalize_0_to_1(self):
     """Test the normalization API function from 0 to 1."""
     out = tstoolbox.normalization(input_ts="tests/data_sunspot.csv")
     assert_frame_equal(out, self.data_0_to_1)
Exemple #5
0
 def test_pct_rank(self):
     ''' Test the normalization API function using the pct_rank method.
     '''
     out = tstoolbox.normalization(mode='pct_rank',
                                   input_ts='tests/data_sunspot.csv')
     assert_frame_equal(out, self.data_pct_rank)
Exemple #6
0
 def test_normalize(self):
     ''' Test the normalization API function using the zscore method.
     '''
     out = tstoolbox.normalization(mode='zscore',
                                   input_ts='tests/data_sunspot.csv')
     assert_frame_equal(out, self.data_zscore)
Exemple #7
0
 def test_normalize(self):
     """Test the normalization API function using the zscore method."""
     out = tstoolbox.normalization(mode="zscore",
                                   input_ts="tests/data_sunspot.csv")
     assert_frame_equal(out, self.data_zscore)