Skip to content

Conversation

@sathvikbhagavan
Copy link
Member

Fixes: #513

@sathvikbhagavan sathvikbhagavan changed the title refactor: remove lib/* into extensions refactor: make lib/* into extensions Jul 24, 2025
@sathvikbhagavan sathvikbhagavan marked this pull request as ready for review July 26, 2025 12:42
@sathvikbhagavan
Copy link
Member Author

@ChrisRackauckas, can you take a look? I have converted all the lib/ packages into extensions. After this, I will update the docs in a separate PR.

@ChrisRackauckas
Copy link
Member

Looks fine but the docs need to be updated to not be importing the old libraries.

@sathvikbhagavan
Copy link
Member Author

@ChrisRackauckas, I have fixed the docs and downgrade CI as well.
One more thing - I renamed SurrogateRandomForests to SurrogateXGBoost as it uses XGBoost internally and not RandomForests 😅

Project.toml Outdated

[extensions]
SurrogatesAbstractGPsExt = "AbstractGPs"
SurrogatesFluxExt = ["Flux", "Optimisers"]
Copy link
Member

Choose a reason for hiding this comment

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

Optimisers being necessary will need to be clearly documented.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, i will document it.


using Surrogates: NeuralSurrogate
using SurrogatesBase
using Optimisers
Copy link
Member

Choose a reason for hiding this comment

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

Optimizers is in Flux though?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I thought that was deprecated in favour of using Optimisers.jl

Copy link
Member

Choose a reason for hiding this comment

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

It's still baked in there, so that makes the extension easier.

@ChrisRackauckas
Copy link
Member

Co-authored-by: Sathvik Bhagavan <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 2669adb into SciML:master Aug 5, 2025
8 checks passed
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.

Can things in lib/ go in package extensions now?

2 participants