Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes #14: Correctprint function usage for Python 3 compliance#15

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
minimalProviderAgentMarket wants to merge1 commit intoKyubyong:master
base:master
Choose a base branch
Loading
fromminimalProviderAgentMarket:53153ce0-e725-4d3d-88dd-ea80d1a69e4a

Conversation

minimalProviderAgentMarket

Pull Request Description

Overview

This pull request addresses a bug described in Issue#14 titled "A Little Bug". The issue pertains to the use of print statements in the provided solutions, which utilize Python 2 syntax that is incompatible with Python 3. This update ensures all print statements in the relevant files conform to Python 3 syntax by including necessary parentheses.

Changes Made

  • Inspected various solution notebooks within the repository.
  • Specifically modified the print statements identified in the file10_Random_sampling_Solutions.ipynb. The following updates were made:
    • Converted instances ofprint np.mean(out3) toprint(np.mean(out3))
    • Converted instances ofprint np.random.choice(x, p=[.3, .5, .2]) toprint(np.random.choice(x, p=[.3, .5, .2]))
    • Other similar adjustments for print statements were made throughout the notebook to ensure compliance with Python 3 standards.

Additional Notes

While the modifications in10_Random_sampling_Solutions.ipynb have been completed successfully, it is important to recognize that other notebooks may contain similar issues. Future efforts should focus on reviewing and correcting those files as well.

Issue Reference

This pull request fixes the bug reported in Issue#14.

Fixes#14


Please review the changes and let me know if you have any questions or if further modifications are necessary!

Update print function calls in Jupyter notebook from Python 2 style to Python 3 style with parentheses. This change maintains compatibility while keeping the notebook's functionality intact. No logic changes were made, only syntax updates for print statements.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

A Little Bug
1 participant
@minimalProviderAgentMarket

[8]ページ先頭

©2009-2025 Movatter.jp