Skip to content

Instantly share code, notes, and snippets.

View carlotorniai's full-sized avatar

Carlo Torniai carlotorniai

View GitHub Profile
@carlotorniai
carlotorniai / performing_teams.md
Last active February 21, 2019 10:50
How to build a successful high performing data science team.

How to build high performing teams

A bit of history

In January 2019 I've been asked by a friend me some advice on how to build a high performing data science team. I wrote down some points which, from what I’ve seen in my own experience across several industries and decades are beyond the specific case and discipline. I then shared them on a Linkedin post. One of the comments from suggested to have a public gist to encourage collecting comments and addition to the intial list. So here it is.

@carlotorniai
carlotorniai / keybase.md
Created December 2, 2016 21:24
keybase identity proof

Keybase proof

I hereby claim:

  • I am carlotorniai on github.
  • I am carlotorniai (https://keybase.io/carlotorniai) on keybase.
  • I have a public key whose fingerprint is 4798 9836 009B AB58 8CEB C1B7 F8C0 C2EF AFA6 6F1B

To claim this, I am signing this object:

@carlotorniai
carlotorniai / predict_flask.py
Last active December 26, 2015 15:19
Flask script to calssify a chunk of text
import json
from flask import Flask, request, Response, redirect, url_for
import pickle
from nbpredictor import predict
app = Flask(__name__)
def readpickle(filename):
''' Reads a pickle file and returns its content'''
infile = open(filename, "rb")
@carlotorniai
carlotorniai / nbpredictor.py
Created October 26, 2013 16:24
Multinomial Naive Bayse in scikit-learn
import json
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
import re
from bs4 import BeautifulSoup
import requests