This file contains hidden or 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
# template tag | |
from mezzanine import template | |
from mezzanine.forms.forms import FormForForm | |
from mezzanine.pages.models import Page | |
register = template.Library() | |
@register.as_tag | |
def form_from_page(slug): |
This file contains hidden or 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 pandas as pd | |
import numpy as np | |
from pandas_datareader import data | |
from sklearn.model_selection import train_test_split | |
from sklearn.preprocessing import MinMaxScaler | |
from sklearn.neural_network import MLPClassifier | |
from sklearn.metrics import classification_report,confusion_matrix | |
from datetime import datetime | |
def stat(X_test, predictions, y_test, position_sizing, accuracy): |
This file contains hidden or 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
version: '3' | |
services: | |
master0: | |
image: chrislusf/seaweedfs:local | |
ports: | |
- 9333:9333 | |
- 19333:19333 | |
command: "master -ip=master0 -port=9333 -peers=master0:9333,master1:9334,master2:9335" | |
master1: |