I run the following code and get this problem -
"/usr/local/lib/python2.7/dist-packages/seaborn/timeseries.py: 183: UserWarning: the tsplot function is deprecated and will be removed or replaced (in a substantially modified version) in a future release. warnings.warn (msg, UserWarning) ".
Does anyone know how to fix this problem?
The code-
import numpy as np
import tensorflow as tf
import seaborn as sns
import pandas as pd
SEQ_LEN = 10
def create_time_series():
freq = (np.random.random()*0.5) + 0.1
ampl = np.random.random() + 0.5
x = np.sin(np.arange(0,SEQ_LEN) * freq) * ampl
return x
for i in xrange(0, 5):
sns.tsplot( create_time_series() );
source
share