Skip to content

Instantly share code, notes, and snippets.

View woobe's full-sized avatar
🏡
WFH

Jo-fai Chow woobe

🏡
WFH
View GitHub Profile
@woobe
woobe / README.md
Last active March 15, 2018 06:27
[Blog]: Towards (Yet) Another R Colour Palette Generator
@woobe
woobe / split_airline_sentiment.py
Created September 11, 2018 18:25
A simple script to split airline sentiment dataset into train and test set
import numpy as np
import pandas as pd
from sklearn import model_selection
al = pd.read_csv("Airline-Sentiment-2-w-AA.csv", encoding='ISO-8859-1')
train_al, test_al = model_selection.train_test_split(al, test_size=0.2, random_state=2018)
train_al.to_csv("train_airline_sentiment.csv", index=False)
test_al.to_csv("test_airline_sentiment.csv", index=False)
@woobe
woobe / airline_sentiment_python_api.ipynb
Created September 11, 2018 19:27
Example notebook for Airline Sentiment using Driverless AI's Python API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@woobe
woobe / app.py
Created March 17, 2022 09:23
Tutorial - Setup for HAIC App Developers
from h2o_wave import main, app, Q, ui
@app('/demo')
async def serve(q: Q):
q.page["my_form_card"] = ui.form_card(
box='1 1 -1 -1',
items=[
ui.text("My first app!")