Closed jermaine1ronquillo closed 6 years ago
Can you provide the code where the error happened?
the file is Ismail & Efendi - ImprovedWeightedFTS.ipynb
The code from pyFTS.partitioners import Grid, Util as pUtil from pyFTS.benchmarks import benchmarks as bchmk from pyFTS.models import chen
tag = 'chen_partitioning' _type = 'point'
for dataset_name in dataset_names: dataset = get_dataset(dataset_name)
bchmk.sliding_window_benchmarks(dataset, 1000, train=0.8, inc=0.2,
methods=[chen.ConventionalFTS],
benchmark_models=False,
transformations=[None],
partitions=np.arange(10,100,2),
progress=True, type=_type,
distributed=False, #nodes=['192.168.0.110', '192.168.0.107','192.168.0.106'],
file="benchmarks.db", dataset=dataset_name, tag=tag)
bchmk.sliding_window_benchmarks(dataset, 1000, train=0.8, inc=0.2,
methods=[chen.ConventionalFTS],
benchmark_models=False,
transformations=[tdiff],
partitions=np.arange(3,30,1),
progress=True,
type='point',
#type=_type,
distributed=False, #nodes=['192.168.0.110', '192.168.0.107', '192.168.0.106'],
file="benchmarks2.db", dataset=dataset_name, tag=tag)
Bug fixed! Please update your local repository and try to execute the code again.
Att.
partitioners_models is a list but the default value is None, hence the error
_tasks = (len(partitioners_models) len(orders) len(partitions) len(transformations) len(steps_ahead)) TypeError: object of type 'NoneType' has no len()