Skip to content

Instantly share code, notes, and snippets.

View philipphager's full-sized avatar

Philipp Hager philipphager

View GitHub Profile
@philipphager
philipphager / example.py
Created April 11, 2023 15:08
mslr-web10k
# Dependencies to install. Pandas for dataframes, pyarrow to support the .parquet file format.
# pip install pandas
# pip install pyarrow
# Load a downloaded dataset from file:
train_df = pd.read_parquet("mslr_train.parquet")
train_df.head()
# The dataset contains 136 features per query-document (columns starting with 'feature_*')
# E.g. one way to select all columns starting with 'feature_'
# Dependencies to install: Pandas for dataframes, pyarrow to support the feather file format.
# pip install pandas
# pip install pyarrow
# Load a downloaded dataset from file:
train_df = pd.read_feather("train.feather")
train_df.head()
# The dataset contains 220 features per query-document (columns starting with 'feature_*')
# Here is one of many ways to select all columns starting with 'feature_'
def theme():
return {
"config": {
"title": {
"font": "serif",
"fontWeight": "normal",
"fontSize": 16,
},
"axis": {
"titleFont": "serif",
@philipphager
philipphager / altair-example.ipynb
Created April 8, 2024 07:17
altair example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@philipphager
philipphager / ips.ipynb
Created October 9, 2024 13:53
CMIP IPS Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.