Skip to content

Instantly share code, notes, and snippets.

Avatar
😄
Enjoying programming and writing

Piotr pplonski

😄
Enjoying programming and writing
View GitHub Profile
@pplonski
pplonski / dashboard_mercury.ipynb
Created Feb 26, 2022
Dashboard Notebook with Mercury
View dashboard_mercury.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / sf_crimes_YAML.yaml
Created Feb 14, 2022
The YAML header for SF crimes notebook - for dashboard creation in Mercury
View sf_crimes_YAML.yaml
---
title: SF Crime 👮
description: Dashboard of San Fransisco Crime Dataset with Mercury
show-code: False
params:
limit:
input: slider
label: Limit number of cases
value: 1000
min: 100
View sf_crimes_dashboard.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / Mercury_Contributor_License_Agreement.md
Last active Jan 24, 2022
Mercury Contributor License Agreement
View Mercury_Contributor_License_Agreement.md

Mercury Contributor License Agreement

I disavow any rights or claims to any changes submitted to the Mercury project and assign the copyright of those changes to MLJAR Sp. z o.o.

As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim.

@pplonski
pplonski / mljar_automl_mode.py
Last active Apr 1, 2021
MLJAR AutoML modes
View mljar_automl_mode.py
'''
MLJAR AutoML can work in 4 modes:
- Explain
- Perform
- Compete
- Optuna
'''
# training in Explain mode, perfect for data exploration
automl = AutoML(mode="Explain")
View SHAP_regression_on_transformed_target.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / docusaurus-copy-button.md
Created Apr 4, 2020 — forked from yangshun/docusaurus-copy-button.md
How to add the "Copy" button to code blocks in Docusaurus
View docusaurus-copy-button.md

Adding "Copy" (to Clipboard) Button

If you would like to add a button to your fenced code blocks so that users may copy the code, you can do so in Docusaurus. You will have to add some code to your Docusaurus project, as seen below.

Under static/js, create a file called code-block-buttons.js with the following:

// Turn off ESLint for this file because it's sent down to users as-is.
/* eslint-disable */
window.addEventListener('load', function() {
View xgboost_memory_consumption.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sqlalchemy-vs-psycopg2.py
import numpy as np
import pandas as pd
from sqlalchemy import create_engine
import psycopg2
import time
host = "host-address-here"
user = "db-user-here"
password = "db-password"
db = "db-name"