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 streamlit as st | |
import pandas as pd | |
from func import FeatureSelector | |
from charts import * | |
from models import ModelRunner | |
import warnings | |
from sklearn.exceptions import DataConversionWarning | |
warnings.filterwarnings(action='ignore', category=DataConversionWarning) | |
df = None # global dataframe; if it is not uploaded, it is None. |
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
#ONLY UPDATED PARTS | |
INSTALLED_APPS = [ | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'account.apps.AccountConfig', |
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 django.contrib.auth.forms import UserCreationForm | |
from django.contrib.auth.models import User | |
from django import forms | |
class UserForm(UserCreationForm): | |
username = forms.CharField(widget=forms.TextInput( | |
attrs={ | |
'type': 'username', | |
'placeholder':('Username') |
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
{% extends 'base.html' %} | |
{% load static %} | |
{% block content %} | |
{% load crispy_forms_tags %} | |
<link rel="stylesheet" href="{% static 'css/login.css' %}"> | |
<div class="main"> | |
<input type="checkbox" id="chk" aria-hidden="true"> | |
<div class="signup"> |
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 .forms import UserForm | |
from django.shortcuts import render, redirect | |
from django.views import View | |
from django.contrib import messages | |
from django.contrib.auth import authenticate, login, logout | |
from django.contrib.auth.models import Group | |
from django.contrib.auth.decorators import login_required | |
from django.utils.decorators import method_decorator |
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
class Device: | |
def __init__(self,model_name, manufacturer, price, model_year): | |
self.model_name = model_name | |
self.manufacturer = manufacturer | |
self.price = price | |
self.model_year = model_year | |
phone1 = Device("Note 9","Samsung",1000,2020) |
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 abc import ABC, abstractmethod | |
class Vehicle(ABC): | |
@abstractmethod | |
def go(self): | |
pass | |
@abstractmethod | |
def stop(self): |
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 abc import ABC, abstractmethod | |
class Utility(ABC): | |
@abstractmethod | |
def check_currency(self): | |
pass | |
@abstractmethod | |
def parse_user_entry(self): |
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
class Reader(ABC): | |
@abstractmethod | |
def read_paper(self): | |
pass | |
@abstractmethod | |
def read_from_database(self): | |
pass | |
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
class Calculation(ABC): | |
@abstractmethod | |
def final_result(self): | |
pass | |
@abstractmethod | |
def temperature_failure(self): | |
pass | |
OlderNewer