Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import difflib | |
| string_1 = "hola" | |
| string_2 = "holita" | |
| sequence = difflib.SequenceMatcher(isjunk=None, a=string_1, b=string_2) | |
| difference = sequence.ratio()*100 | |
| difference = round(difference, 1) | |
| print("Match {} %".format(difference)) |
| # simple LSTM model | |
| from keras.models import Sequential | |
| from keras.layers import Activation, Dense, LSTM | |
| model = Sequential() | |
| model.add(LSTM(128, input_shape=(32, 1))) # 32 timespan 1 value unit | |
| model.add(Dense(1)) | |
| model.add(Activation("linear")) | |
| model.compile(optimizer="rmsprop", loss="mse") |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000