You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Florent, I've got some doc vectors,and tried to fit the model.
Now I got some trained models( named like 'model_40.h5'). I want to see the details of clustering or predict new doc vectors, how could I load these DTC models?
Many thanks.
The text was updated successfully, but these errors were encountered:
fromDeepTemporalClusteringimportDTCfromdatasets_tsimportload_dataimportnumpyasnpdtc=DTC(n_clusters=5,
input_dim=8,
timesteps=168,
n_filters=50,
kernel_size=10,
strides=1,
pool_size=24,
n_units=[50, 10],
alpha=1.0,
dist_metric='eucl',
cluster_init='kmeans',
heatmap=True) # same as your training parametersdtc.initialize()
dtc.load_weights('results/tmp/DTC_model_final.h5')
importjoblibX=joblib.load('./data/X.h5') ## your test datapred=dtc.predict(X)
Hi Florent, I've got some doc vectors,and tried to fit the model.
Now I got some trained models( named like 'model_40.h5'). I want to see the details of clustering or predict new doc vectors, how could I load these DTC models?
Many thanks.
The text was updated successfully, but these errors were encountered: