Skip to content

Commit

Permalink
fix: py package
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Aug 22, 2024
1 parent b171e34 commit fa8707f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions crates/jzflowsdk_py/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .ipc import IPCClient, IPCError
from .loop import simple_loop
3 changes: 1 addition & 2 deletions crates/jzflowsdk_py/loop.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import time
from os import path
import joblib
import uuid
from ipc import IPCClient, IPCError
from . import IPCClient, IPCError
import logging

logging.basicConfig(level=logging.INFO)
Expand Down
3 changes: 0 additions & 3 deletions script/housing-prices/regression.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import argparse
import os
import time
from os import path
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import joblib
import logging
import uuid
from utils import plot_learning_curve
from ipc import IPCClient, IPCError
from jzflowsdk import simple_loop

from sklearn.model_selection import ShuffleSplit
Expand Down
1 change: 0 additions & 1 deletion script/housing-prices/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from sklearn.datasets import load_digits
from sklearn.model_selection import learning_curve
from sklearn.model_selection import ShuffleSplit
import ipc

def plot_learning_curve(estimator, title, X, y, axes=None, ylim=None, cv=None,
n_jobs=None, train_sizes=np.linspace(.1, 1.0, 5)):
Expand Down

0 comments on commit fa8707f

Please sign in to comment.