mirror of
https://github.com/wassname/keras-js.git
synced 2026-09-12 12:33:40 +08:00
add IMDB bidirectional LSTM demo data
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"keras_version": "1.1.0", "config": [{"config": {"init": "uniform", "dropout": 0.0, "input_dtype": "int32", "activity_regularizer": null, "input_dim": 20000, "name": "embedding_1", "output_dim": 64, "batch_input_shape": [null, 200], "mask_zero": false, "input_length": 200, "W_regularizer": null, "trainable": true, "W_constraint": null}, "class_name": "Embedding"}, {"config": {"name": "bidirectional_1", "trainable": true, "layer": {"config": {"stateful": false, "init": "glorot_uniform", "dropout_U": 0.0, "input_dim": 64, "unroll": false, "name": "forward_lstm_1", "go_backwards": false, "trainable": true, "activation": "tanh", "forget_bias_init": "one", "U_regularizer": null, "inner_init": "orthogonal", "b_regularizer": null, "input_length": null, "inner_activation": "hard_sigmoid", "W_regularizer": null, "return_sequences": false, "consume_less": "cpu", "output_dim": 32, "dropout_W": 0.0}, "class_name": "LSTM"}, "merge_mode": "concat"}, "class_name": "Bidirectional"}, {"config": {"p": 0.5, "name": "dropout_1", "trainable": true}, "class_name": "Dropout"}, {"config": {"init": "glorot_uniform", "activity_regularizer": null, "input_dim": null, "name": "dense_1", "b_constraint": null, "activation": "sigmoid", "bias": true, "b_regularizer": null, "output_dim": 1, "W_regularizer": null, "trainable": true, "W_constraint": null}, "class_name": "Dense"}], "class_name": "Sequential"}
|
||||
@@ -0,0 +1 @@
|
||||
[{"weight_name": "embedding_1_W:0", "type": "float32", "length": 1280000, "layer_name": "embedding_1", "offset": 0, "shape": [20000, 64]}, {"weight_name": "forward_lstm_1_W_i:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5120000, "shape": [64, 32]}, {"weight_name": "forward_lstm_1_U_i:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5128192, "shape": [32, 32]}, {"weight_name": "forward_lstm_1_b_i:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5132288, "shape": [32]}, {"weight_name": "forward_lstm_1_W_c:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5132416, "shape": [64, 32]}, {"weight_name": "forward_lstm_1_U_c:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5140608, "shape": [32, 32]}, {"weight_name": "forward_lstm_1_b_c:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5144704, "shape": [32]}, {"weight_name": "forward_lstm_1_W_f:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5144832, "shape": [64, 32]}, {"weight_name": "forward_lstm_1_U_f:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5153024, "shape": [32, 32]}, {"weight_name": "forward_lstm_1_b_f:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5157120, "shape": [32]}, {"weight_name": "forward_lstm_1_W_o:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5157248, "shape": [64, 32]}, {"weight_name": "forward_lstm_1_U_o:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5165440, "shape": [32, 32]}, {"weight_name": "forward_lstm_1_b_o:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5169536, "shape": [32]}, {"weight_name": "backward_lstm_1_W_i:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5169664, "shape": [64, 32]}, {"weight_name": "backward_lstm_1_U_i:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5177856, "shape": [32, 32]}, {"weight_name": "backward_lstm_1_b_i:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5181952, "shape": [32]}, {"weight_name": "backward_lstm_1_W_c:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5182080, "shape": [64, 32]}, {"weight_name": "backward_lstm_1_U_c:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5190272, "shape": [32, 32]}, {"weight_name": "backward_lstm_1_b_c:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5194368, "shape": [32]}, {"weight_name": "backward_lstm_1_W_f:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5194496, "shape": [64, 32]}, {"weight_name": "backward_lstm_1_U_f:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5202688, "shape": [32, 32]}, {"weight_name": "backward_lstm_1_b_f:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5206784, "shape": [32]}, {"weight_name": "backward_lstm_1_W_o:0", "type": "float32", "length": 2048, "layer_name": "bidirectional_1", "offset": 5206912, "shape": [64, 32]}, {"weight_name": "backward_lstm_1_U_o:0", "type": "float32", "length": 1024, "layer_name": "bidirectional_1", "offset": 5215104, "shape": [32, 32]}, {"weight_name": "backward_lstm_1_b_o:0", "type": "float32", "length": 32, "layer_name": "bidirectional_1", "offset": 5219200, "shape": [32]}, {"weight_name": "dense_1_W:0", "type": "float32", "length": 64, "layer_name": "dense_1", "offset": 5219328, "shape": [64, 1]}, {"weight_name": "dense_1_b:0", "type": "float32", "length": 1, "layer_name": "dense_1", "offset": 5219584, "shape": [1]}]
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user