The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
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
CONDA_SUBDIR=osx-64 conda create -n sagemaker-sklearn python=3.8 numpy pandas --override-channels -c https://repo.anaconda.com/pkgs/snowflake | |
conda activate sagemaker-sklearn | |
conda config --env --set subdir osx-64 | |
pip install 'snowflake-connector-python[pandas]' --no-binary snowflake-connector-python | |
pip install JPype1==1.4.1 | |
# next install x86 jdk | |
curl https://cdn.azul.com/zulu/bin/zulu17.38.21-ca-jdk17.0.5-macosx_x64.tar.gz -O | |
tar -xzvf zulu17.38.21-ca-jdk17.0.5-macosx_x64.tar.gz |
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 kfserving | |
from revscoring import Model | |
import mwapi | |
from revscoring.extractors import api | |
from typing import List, Dict | |
class EnWikiDamagingModel(kfserving.KFModel): | |
def __init__(self, name: str): | |
super().__init__(name) |
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 os | |
import shutil | |
import numpy as np | |
import pandas as pd | |
import tensorflow as tf | |
dftrain = pd.read_csv('https://storage.googleapis.com/tf-datasets/titanic/train.csv') | |
dfeval = pd.read_csv('https://storage.googleapis.com/tf-datasets/titanic/eval.csv') | |
MODEL = '1611359327' # update with whatever the train script displays |
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
# After following the instructions in DEVELOPERS.md run this script to install dependencies relevant to Jade | |
set -eu | |
git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Vector ./skins/Vector | |
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Jade ./extensions/Jade | |
# Save the default settings from the Mediawiki installation to be added back later. | |
defaultSettings=`cat LocalSettings.php` |
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
from itertools import * | |
from pylab import * | |
from nltk.corpus import sinica_treebank | |
from string import lower | |
from collections import Counter | |
# Count words in sinica treebank | |
words_with_count = Counter(sinica_treebank.words()) | |
counts = array(words_with_count.values()) |
I hereby claim:
- I am accraze on github.
- I am accraze (https://keybase.io/accraze) on keybase.
- I have a public key whose fingerprint is 42E0 04EF E6C0 35CB 9AA1 8DAD E280 B60A E14E 7EA4
To claim this, I am signing this object:
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
module Main where | |
import Control.Lens | |
import qualified Data.ByteString.Lazy as BL | |
import Network.Wreq | |
main :: IO () | |
main = do | |
response <- get "https://api.discogs.com/releases/249504" |
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
describe('OrderApp', function() { | |
describe('Service: MenuResult', function() { | |
beforeEach(module('OrderApp')); | |
beforeEach(inject(function($httpBackend) { | |
mock_response = { | |
results: [{ | |
_id: "1234567890", | |
url: "/food/pizza", | |
title: 'Pizza' |
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
describe('orderPanel', function() { | |
var scope; | |
element, | |
beforeEach(module('app')); | |
beforeEach(inject(function($rootScope, $compile) { | |
element = angular.element('<order-panel></order-panel>'); |
NewerOlder