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 io | |
from flask import Flask, render_template, request, send_from_directory, send_file | |
from PIL import Image | |
import requests | |
import os | |
import urllib.request | |
app = Flask(__name__) | |
@app.route("/") |
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
{ | |
"_id":"oddsportal", | |
"startUrl":[ | |
"https://www.oddsportal.com/soccer/england/premier-league/" | |
], | |
"selectors":[ | |
{ | |
"id":"match", | |
"type":"SelectorLink", | |
"parentSelectors":[ |
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
#Randomly shuffle the data | |
yourdata<-yourdata[sample(nrow(yourdata)),] | |
#Create 10 equally size folds | |
folds <- cut(seq(1,nrow(yourdata)),breaks=10,labels=FALSE) | |
#Perform 10 fold cross validation | |
for(i in 1:10){ | |
#Segement your data by fold using the which() function | |
testIndexes <- which(folds==i,arr.ind=TRUE) | |
testData <- yourdata[testIndexes, ] | |
trainData <- yourdata[-testIndexes, ] |
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
# 10_basic.py | |
# 15_make_soup.py | |
# 20_search.py | |
# 25_navigation.py | |
# 30_edit.py | |
# 40_encoding.py | |
# 50_parse_only_part.py |