Skip to content

Instantly share code, notes, and snippets.

@MachineLearningIsEasy
MachineLearningIsEasy / lstm.ipynb
Last active February 8, 2022 21:58
IMDB classification via LSTM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MachineLearningIsEasy
MachineLearningIsEasy / imdb_conv_nn.ipynb
Created September 17, 2021 09:21
IMDB convolution NN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MachineLearningIsEasy
MachineLearningIsEasy / ner.ipynb
Created September 21, 2021 12:26
NER with tensorflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MachineLearningIsEasy
MachineLearningIsEasy / bert.ipynb
Created October 28, 2021 12:32
Using BERT in classification
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def main_flask_function():
return 'Hello world!'
from flask import request, Flask
import json
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def main_flask_function():
if request.method == 'POST':
from flask import request, Flask
import json
import pickle
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def main_flask_function():
if request.method == 'GET':