当前位置:   article > 正文

从 Keras 调用方法 timeseries_dataset_from_array 时出错_timeseries_dataset_from_array() got an unexpected

timeseries_dataset_from_array() got an unexpected keyword argument 'drop_rem

1.更新tensorflow的版本
2.更新keras的版本
3.import tensorflow as tf
4.
train_dataset = tf.keras.preprocessing.timeseries_dataset_from_array(
raw_data[:-delay],
targets=temperature[delay:],
sampling_rate=sampling_rate,
sequence_length=sequence_length,
shuffle=True,
batch_size=batch_size,
start_index=0,
end_index=num_train_samples
)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/293127
推荐阅读
相关标签
  

闽ICP备14008679号