**已关闭。**此问题需要debugging details。它目前不接受回答。
编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答这个问题。
17天前关闭。
Improve this question的
我正在使用tfr模块进行时间序列预测,并定义了一个如下的训练模型”-
#Train Model
best_model = tfr.tfr_models.Simple_Transformer.train( self = ,
train_dataset=trainset,
test_dataset=testset,
loss_function='QuantileLoss_Weighted(quantiles=[0.6])',
metric='MSE',
learning_rate=0.0001,
max_epochs=2,
min_epochs=1,
train_steps_per_epoch=10,
test_steps_per_epoch=5,
patience=2,
weighted_training=True,
model_prefix='test_models\tfr_model',
logdir='test_logs')
字符串
我不知道在自我论证中应该传递什么?
1条答案
按热度按时间vzgqcmou1#
您在注解中提到的错误表明您还没有创建对象,并且在这样做之前调用了方法。要修复它,首先创建一个对象,然后调用对象上的train方法。
尝试看起来更像的东西:第一个月