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 sklearn.datasets import make_regression | |
import pandas as pd | |
from xgboost import XGBRegressor | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
X, y = make_regression(n_samples=500, n_features=4, n_informative=2, noise=0.3) | |
X = pd.DataFrame(X, columns=['A', 'B', 'C', 'D']) | |
model = XGBRegressor() |
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
# $ conda create -n test | |
# $ conda create -n test pyomeca -c pyomeca | |
from pathlib import Path | |
from pyomeca import Markers3d, Analogs3d | |
DATA_FOLDER = Path("/home/romain/Documents/codes/pyomeca/tests/data") | |
MARKERS_CSV = DATA_FOLDER / 'markers.csv' | |
MARKERS_ANALOGS_C3D = DATA_FOLDER / 'markers_analogs.c3d' | |
ANALOGS_CSV = DATA_FOLDER / 'analogs.csv' |
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
._dash-undo-redo {display: none;} |
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
""" | |
FileIO GUIs in pyoviz | |
""" | |
import difflib | |
from pathlib import Path | |
import ezc3d | |
import numpy as np | |
from PyQt5 import QtWidgets |
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
.nord0 { | |
color: #2e3440; | |
} | |
.nord1 { | |
color: #3b4252; | |
} | |
.nord2 { | |
color: #434c5e; |
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
function auto_activate_conda --on-variable PWD | |
if test -f environment.yml | |
set env_name (awk '/name:/ {print $2; exit}' environment.yml) | |
if test -n "$env_name" | |
conda activate $env_name | |
echo -e (set_color green)"✅ Activated Conda environment: $env_name"(set_color normal) | |
set -g last_conda_env_dir $PWD | |
end | |
else | |
if test -n "$last_conda_env_dir"; and test $PWD != $last_conda_env_dir |