This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text A | Text B | Text C | |
---|---|---|---|
Brownie physics fruitcake sesame snaps. | Brownie chocolate cake gingerbread jelly wafer powder toffee. | Icing pastry icing cupcake powder oat cake souffle. | |
Cheesecake gingerbread pastry chocolate cake pudding tart. | Lemon biology drops macaroon danish marzipan gummi bears sweet roll candy. | Pastry toffee sweet roll. | |
Wafer donut tootsie roll. | Jelly tart carrot cake icing apple pie halvah. | Icing liquorice gingerbread chem muffin. | |
Candy canes jelly-o croissant. | Macaroon powder danish. | Icing tootsie roll apple pie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --enable-optimizations --enable-shared | |
make -j4 | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import Sequential | |
from keras.layers import LSTM, Dense | |
import numpy as np | |
def gen_sig(num_samples, seq_len): | |
one_indices = np.random.choice(a=num_samples, size=num_samples // 2, replace=False) | |
x_val = np.zeros((num_samples, seq_len), dtype=np.bool) | |
x_val[one_indices, 0] = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import Sequential | |
from keras.layers import LSTM, Dense | |
import numpy as np | |
def gen_sig(num_samples, seq_len): | |
one_indices = np.random.choice(a=num_samples, size=num_samples // 2, replace=False) | |
x_val = np.zeros((num_samples, seq_len), dtype=np.bool) | |
x_val[one_indices, 0] = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.layers import Input, Masking, LSTM, Dense | |
from keras.models import Model | |
import numpy as np | |
# Case1: model with return_sequences=True (output_shape = (1,10,1) ) | |
############################################################## | |
input1 = Input(batch_shape=(1, 10, 16)) | |
mask1 = Masking(mask_value=2.)(input1) | |
lstm1 = LSTM(16, return_sequences=True)(mask1) | |
dense_layer = Dense(1, activation='sigmoid') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.layers import Masking, Dense | |
from keras.layers.recurrent import LSTM | |
from keras.models import Sequential | |
import numpy as np | |
np.set_printoptions(precision=4) | |
np.random.seed(1) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import proj3d | |
def main(): | |
fig = plt.figure() | |
ax = fig.add_subplot(111, projection='3d') | |
ax.set_ylim(-100, 100) | |
ax.set_xlim(-10, 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from collections import deque | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
from matplotlib.widgets import Button, Slider | |
class AnalogPlot: | |
def __init__(self, data, display_len): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from collections import deque | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
class AnalogPlot: | |
def __init__(self, data, display_len): | |
self.buff = deque([0.0]*display_len) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Iterates through a directory of exported MindMup .mup files and prints the title of each file that matches the given | |
regular expression, as well as the matched node contents. | |
MindMup is a mind mapping tool which represents the Directed Acyclic Graph (DAG) of a mind map as a nested dictionary encoded as JSON. | |
""" | |
import argparse | |
import json | |
from pathlib import Path |