This excercise is intended for candidates for PhD students in COeXISTENCE
Please send the solution reports to [email protected]
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 io | |
from collections import defaultdict | |
import json | |
import pickle | |
class BagOfWords(): | |
def __init__(self, txt=''): | |
self._d = defaultdict(int) | |
if isinstance(txt, io.TextIOWrapper): | |
for line in txt: |
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
#!/usr/bin/env python3 | |
import argparse | |
from math import sin | |
from scipy.misc import derivative | |
def parse_args(): | |
parser = argparse.ArgumentParser(description='Newthon\\'s method for finding roots') |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
import pandas as pd | |
from shapely.geometry import Point | |
import os | |
import matplotlib |