LSTM模型序列到序列

时间:2019-01-14 08:58:52

标签: python keras sequence lstm

我正在运行一个序列来对LSTM模型进行序列化,但是我的数组形状存在问题。我对LSTM的经验很少。

我的窗口大小是33,我希望我的输出是11个数据点的序列。

我的代码是:

public class Trust
{
    public int Id { get; set; }

    [Required]
    [StringLength(100)]
    public string Name { get; set; }

    public Structure Structure { get; set; }

    public IEnumerable<Entity> Entities { get; set; }

    [Display(Name="Associated Structure")]
    public int? StructureId { get; set; }
}

我收到以下错误:检查目标时出错:预期density_4的形状为(11,),但数组的形状为(1,)

如何修改模型,使其输出的数组大小为11?

0 个答案:

没有答案
相关问题