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

Precompilation workload #924

Closed
olivierlabayle opened this issue Aug 14, 2023 · 2 comments
Closed

Precompilation workload #924

olivierlabayle opened this issue Aug 14, 2023 · 2 comments

Comments

@olivierlabayle
Copy link
Collaborator

Hi,

I am trying to add a precompilation workload to my package but it fails due to MLJBase with the following error:

LoadError: Evaluation into the closed module `MLJBase` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `MLJBase` with `eval` during precompilation - don't do this.

The triggering piece of code seems to be the following pipeline definition:

with_encoder(model; encoder=encoder()) = Pipeline(TreatmentTransformer(;encoder=encoder),  model)

I've seen there has been a tentative to add a workload in the past, but this aborted. Should I just give up on that at the moment?

@ablaom
Copy link
Member

ablaom commented Aug 15, 2023

Mmm. I honestly don't know where eval would come in the Pipeline model code. But possibly this is a red herring and the real issue is the one pointed out it in the failed attempt. The remedy (get rid of the INTERFACE_MODE global constant) is not something likely in the near future.

Sorry I cannot be more helpful.

@olivierlabayle
Copy link
Collaborator Author

I see, thank you, I think that answers this issue for now!

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

No branches or pull requests

2 participants