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

No way to set project name, it assumes a project name #3

Closed
neomatrix369 opened this issue Jan 27, 2021 · 1 comment
Closed

No way to set project name, it assumes a project name #3

neomatrix369 opened this issue Jan 27, 2021 · 1 comment

Comments

@neomatrix369
Copy link

neomatrix369 commented Jan 27, 2021

I had some success running the jar file as mentioned in #2 although couldn't find a way to set the project name. After it finishes the run, I noticed it picked up the name of the git repo which I currently stood as the name of the wanb project.

A work-around for now would be great to have, @raubitsj mentions setting the project name as an environment variable.

I found this in the wandb help docs:

wandb init --project [NAME OF PROJECT TO USE]

Would this work for now?

@raubitsj
Copy link
Member

This is how you set a project programmatically:

iff --git a/examples/java/java-sin/src/main/java/com/wandbj/sinfunc/Example.java b/examples/java/java-sin/src/main/java/com/wandbj/sinfunc/Example.java
index b192d9a..fc5940a 100644
--- a/examples/java/java-sin/src/main/java/com/wandbj/sinfunc/Example.java
+++ b/examples/java/java-sin/src/main/java/com/wandbj/sinfunc/Example.java
@@ -20,6 +20,7 @@ public class Example {
         // Using builder to create run object
         System.out.println("Creating wandb run object.");
         WandbRun run = new WandbRun.Builder()
+                .withProject("myproject")
                 .withConfig(config)
                 .build();

wandb init or setting an environment variable does not work currently.

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