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
df = pd.read_csv("file.csv") | |
df.drop_duplicates([features_here],inplace=True) |
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 RmsleMetric(object): | |
def get_final_error(self, error, weight): | |
return np.sqrt(error / (weight + 1e-38)) | |
def is_max_optimal(self): | |
return False | |
def evaluate(self, approxes, target, weight): | |
assert len(approxes) == 1 | |
assert len(target) == len(approxes[0]) |
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 logging | |
from flask import Flask, request | |
from telegram.ext import Updater, CommandHandler , MessageHandler , Filters, Dispatcher | |
from telegram import Bot , Update | |
#enable logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s %(message)s', | |
level= logging.INFO) | |
logger = logging.getLogger(__name__) | |
TOKEN = "1363998583:AAHSEmA8H0-YDELz3CEABNmcUrYhiaMtsOo" |