Skip to content

Instantly share code, notes, and snippets.

View thomasjpfan's full-sized avatar

Thomas J. Fan thomasjpfan

View GitHub Profile
@thomasjpfan
thomasjpfan / array_api_gmm.ipynb
Last active March 24, 2022 16:04
Array API example for GMM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thomasjpfan
thomasjpfan / array_api_lda.ipynb
Created January 24, 2022 22:51
array_api with LDA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thomasjpfan
thomasjpfan / simple_tree_bench.py
Created January 31, 2022 17:22
simple_tree_bench.py
import json
from collections import defaultdict
import time
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_classification
from argparse import ArgumentParser
import argparse
from tqdm import tqdm
parser = ArgumentParser()
@thomasjpfan
thomasjpfan / one-hot.ipynb
Last active February 13, 2022 19:49
Column Transformer with mixed data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from collections import defaultdict
from github import Github
import os
token = os.environ["GITHUB_TOKEN"]
gh = Github(token)
sk_repo = gh.get_repo("scikit-learn/scikit-learn")
@thomasjpfan
thomasjpfan / diagram.ipynb
Created March 16, 2022 03:15
Display diagram concern
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thomasjpfan
thomasjpfan / gist:5df587d3e7cbb8d6df746e71549b8e24
Last active March 19, 2022 16:11
Diagram with Github Specific error
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.