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

Support Python 3.12 #386

Merged
merged 5 commits into from
Apr 1, 2024
Merged

Support Python 3.12 #386

merged 5 commits into from
Apr 1, 2024

Conversation

fealho
Copy link
Member

@fealho fealho commented Mar 27, 2024

CU-86ayu7232, Resolve #372

@sdv-team
Copy link
Contributor

@codecov-commenter
Copy link

codecov-commenter commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.90%. Comparing base (27675a7) to head (ab205cc).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
+ Coverage   86.87%   86.90%   +0.02%     
==========================================
  Files          27       27              
  Lines        1791     1795       +4     
==========================================
+ Hits         1556     1560       +4     
  Misses        235      235              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fealho fealho force-pushed the issue-372-py12 branch 7 times, most recently from 9986e23 to dec486b Compare March 27, 2024 02:13
@fealho fealho force-pushed the issue-372-py12 branch 5 times, most recently from bf41bf9 to 82fa8d0 Compare March 27, 2024 03:41
@fealho fealho marked this pull request as ready for review March 27, 2024 15:20
@fealho fealho requested a review from a team as a code owner March 27, 2024 15:20
@fealho fealho requested review from rwedge, amontanez24, pvk-developer and frances-h and removed request for a team and rwedge March 27, 2024 15:20
pyproject.toml Outdated
"scipy>=1.9.2,<2;python_version>='3.10'",
"scipy>=1.9.2,<2;python_version>='3.10' and python_version<'3.12'",
"scipy>=1.12.0,<2;python_version>='3.12'",
'setuptools<70',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are adding setuptools because the init file uses pkg_resources, I think we should just switch to importlib instead since pkg_resources is deprecated. @frances-h I remember we wanted to do this before but had to keep pkg_resources for some reason. Was it because of python 3.8 or 3.7?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly it was Python 3.7 because importlib.metadata was added in Python 3.8.

tests/unit/bivariate/test_base.py Show resolved Hide resolved
@@ -26,10 +26,10 @@
"\n",
"warnings.filterwarnings('ignore')\n",
"\n",
"from sklearn.datasets import load_boston\n",
"from sklearn.datasets import load_diabetes\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably rerun the notebook since the outputs will be different now

@fealho fealho requested a review from amontanez24 March 28, 2024 16:28
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.574182672682398\n"
"0.010323153621473069\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the score so much worse on this dataset?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this score varies from 1 to negative infinity, and that training on the real data performs just as poorly, so I would guess it's simply a harder regression problem.

copulas/__init__.py Outdated Show resolved Hide resolved
@fealho fealho removed the request for review from pvk-developer March 29, 2024 17:21
@fealho fealho merged commit 1c088f3 into main Apr 1, 2024
76 checks passed
@fealho fealho deleted the issue-372-py12 branch April 1, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Python 3.12
5 participants