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
# Example: Saving and loading H2O models | |
# Using Iris for this example | |
d_train <- iris | |
# Initialize H2O | |
library(h2o) | |
h2o.init(nthreads = -1) | |
# Train a DRF model |
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 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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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!") |
OlderNewer