Skip to content

Commit

Permalink
Updated importing of ptype
Browse files Browse the repository at this point in the history
  • Loading branch information
jsschreck committed Sep 21, 2023
1 parent 1b1c869 commit 47af4ab
Show file tree
Hide file tree
Showing 2 changed files with 523 additions and 93 deletions.
11 changes: 8 additions & 3 deletions applications/train_classifier_ptype.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
from tensorflow.keras import backend as K
from argparse import ArgumentParser

from ptype.callbacks import MetricsCallback
from ptype.data import load_ptype_uq, preprocess_data
from sklearn.model_selection import GroupShuffleSplit
try:
from ptype.callbacks import MetricsCallback
except ImportError:
import subprocess
subprocess.run(['pip', 'install', 'git+https://github.com/ai2es/ptype-physical.git'], check=True)
from ptype.callbacks import MetricsCallback
from ptype.data import load_ptype_uq, preprocess_data

from sklearn.model_selection import GroupShuffleSplit
from evml.keras.callbacks import get_callbacks, ReportEpoch
from evml.keras.models import CategoricalDNN
from evml.pbs import launch_pbs_jobs
Expand Down
605 changes: 515 additions & 90 deletions notebooks/regression_example.ipynb

Large diffs are not rendered by default.

0 comments on commit 47af4ab

Please sign in to comment.