Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix due to new scipy versions removing scipy.random #11

Merged
merged 5 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
# when a job name is not provided
run-lint-test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
name: lint
# Name the Job
steps:
Expand Down
8 changes: 4 additions & 4 deletions pyrelational/datasets/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,11 @@ def _load_dataset(self, size=1000, n_dim=2, random_balance=False, n_splits=10):
testSize2 = trainSize2 * 10

# Generate parameters of datasets
mean1 = scipy.random.rand(n_dim)
cov1 = scipy.random.rand(n_dim, n_dim) - 0.5
mean1 = np.random.rand(n_dim)
cov1 = np.random.rand(n_dim, n_dim) - 0.5
cov1 = np.dot(cov1, cov1.transpose())
mean2 = scipy.random.rand(n_dim)
cov2 = scipy.random.rand(n_dim, n_dim) - 0.5
mean2 = np.random.rand(n_dim)
cov2 = np.random.rand(n_dim, n_dim) - 0.5
cov2 = np.dot(cov2, cov2.transpose())

# Training data generation
Expand Down