Skip to content

chebyshev_uniform for Generator1D#213

Open
samuelperezdi wants to merge 4 commits intoNeuroDiffGym:masterfrom
samuelperezdi:master
Open

chebyshev_uniform for Generator1D#213
samuelperezdi wants to merge 4 commits intoNeuroDiffGym:masterfrom
samuelperezdi:master

Conversation

@samuelperezdi
Copy link
Copy Markdown

As a result of my excellent learning experience in the Harvard ComputeFest 2024: Physics-Informed Neural Networks, I wanted to contribute to neurodiffeq. The perfect opportunity presented by initiative of @shuheng-liu. I open this pull request to create the chebyshev_uniform method for Generator1D. This should:

  • Sample randomly from an uniform distribution between 0 and π
  • Generate the Chebyshev nodes of the first kind from this sample
  • Map output from (-1, 1) to (tmin, tmax)

I have also updated the documentation and added a test, accordingly.

Thank you!

Comment thread neurodiffeq/generators.py
import numpy as np
from typing import List

def _chebyshev_uniform(a, b, n):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am not sure that this makes sense. Chebyshev nodes are deterministic sequence of numbers. Its not a function which is valid for a random number.
I think Its better to define "chebyshev_noisy" which adds noise to the chebyshev sequence rather than doing this.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for your comments, Sathvik! I pushed a new commit with an attempt of chebyshev_noisy.

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.

2 participants