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

Help needed with getting MLPlan running #273

Open
Perevalov opened this issue Apr 17, 2023 · 3 comments
Open

Help needed with getting MLPlan running #273

Perevalov opened this issue Apr 17, 2023 · 3 comments

Comments

@Perevalov
Copy link

I tried to create a simple Java Maven project in IntelliJ Idea and added the following dependency to the pom.xml,

<dependency>
  <groupId>ai.libs</groupId>
  <artifactId>mlplan-full</artifactId>
  <version>0.2.5</version>
</dependency>

however, when trying to run the project, the following error arises:
image

Could you give any guidance on how to proceed further?

I'm using Java 17.0.6 and Maven 3.8.8

@mwever
Copy link
Collaborator

mwever commented Apr 17, 2023

Hi @Perevalov ,
it looks like the jitpack repository is not available for your build?

In gradle you need to declare the repositories artifacts can be pulled from like this:

	repositories {
		mavenCentral()
		mavenLocal()
		maven { url "https://jitpack.io" }
		maven { url "https://clojars.org/repo/" }
		maven { url "https://plugins.gradle.org/m2/" }
	}

or in maven like this:

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Can you please make sure that all necessary repositories are availble to your build?

@Perevalov
Copy link
Author

Hi @mwever, thanks, it builds now. I will proceed with exploring the framework. Do you have any projects/code examples apart from the https://starlibs.github.io/AILibs/projects/mlplan/?

@mwever
Copy link
Collaborator

mwever commented Apr 18, 2023

Yes, actually almost every sub-project has a source folder for examples. In particular the sub-projects for ML-Plan variants (sklear, WEKA, MEKA, etc.) do come with different examples. Structurally they are almost identical as only a builder is instantiated and then ML-Plan is configured via the builder, and eventually ML-Plan is called to return a pipeline. You will also find some examples providing a graphical interface to oberserve the progress of the search.

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