我正试图建立一个深度学习模型来预测前五大可能的电影类型,使用电影的概要作为输入。我在数据中包含的电影类型是19种,但是不管测试输入,模型总是预测相同的5种电影类型。下面是我构建模型的代码。但拟合精度为90%。你能指出我做错了什么吗?
from keras.preprocessing.text import one_hot
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
from keras.layers.core import Activation, Dropo
我有一个视图控制器,其中嵌入了一个scrollView。在这个Scroll视图中,我添加了4个视图,它们是XIB文件视图。XIB文件大小是“推断”的,尽管看起来是iphone5大小。加载时,它们不会自动调整为屏幕的大小,而是停留在iphone5大小。
如何使XIB文件与要加载到的屏幕大小相同?
编辑:
我还尝试通过如下代码更改nib文件的大小:
// 1) Create the three views used in the swipe container view
let AVc :AViewController = AViewController(nibName: