-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: repackage and move model specs
- Loading branch information
Showing
13 changed files
with
81 additions
and
119 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
.../src/main/java/it/smartcommunitylabdhub/core/models/specs/model/HuggingFaceModelSpec.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ation/src/main/java/it/smartcommunitylabdhub/core/models/specs/model/MlflowModelSpec.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...cation/src/main/java/it/smartcommunitylabdhub/core/models/specs/model/mlflow/Dataset.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...tion/src/main/java/it/smartcommunitylabdhub/core/models/specs/model/mlflow/Signature.java
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...s/commons/src/main/java/it/smartcommunitylabdhub/commons/annotations/common/SpecType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...commons/src/main/java/it/smartcommunitylabdhub/commons/models/model/SKLearnModelSpec.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
...s/commons/src/main/java/it/smartcommunitylabdhub/commons/models/model/mlflow/Dataset.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...ime-model-serve/src/main/java/it/smartcommunitylabdhub/runtime/mlflow/models/Dataset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package it.smartcommunitylabdhub.runtime.mlflow.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class Dataset { | ||
|
||
@Schema(title = "fields.mlflow.inputdatasetname.title", description = "fields.mlflow.inputdatasetname.description") | ||
private String name; | ||
|
||
@Schema( | ||
title = "fields.mlflow.inputdatasetdigest.title", | ||
description = "fields.mlflow.inputdatasetdigest.description" | ||
) | ||
private String digest; | ||
|
||
@Schema( | ||
title = "fields.mlflow.inputdatasetprofile.title", | ||
description = "fields.mlflow.inputdatasetprofile.description" | ||
) | ||
private String profile; | ||
|
||
@Schema( | ||
title = "fields.mlflow.inputdatasetschema.title", | ||
description = "fields.mlflow.inputdatasetschema.description" | ||
) | ||
private String schema; | ||
|
||
@Schema( | ||
title = "fields.mlflow.inputdatasetsource.title", | ||
description = "fields.mlflow.inputdatasetsource.description" | ||
) | ||
private String source; | ||
|
||
@JsonProperty("source_type") | ||
@Schema( | ||
title = "fields.mlflow.inputdatasetsourcetype.title", | ||
description = "fields.mlflow.inputdatasetsourcetype.description" | ||
) | ||
private String sourceType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
.../models/specs/model/SKLearnModelSpec.java → ...ntime/sklearn/specs/SKLearnModelSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package it.smartcommunitylabdhub.core.models.specs.model; | ||
|
||
package it.smartcommunitylabdhub.runtime.sklearn.specs; | ||
|
||
import it.smartcommunitylabdhub.commons.annotations.common.SpecType; | ||
import it.smartcommunitylabdhub.commons.models.entities.EntityName; | ||
import it.smartcommunitylabdhub.commons.models.model.ModelSpec; | ||
|
||
@SpecType(kind = "sklearn", entity = EntityName.MODEL) | ||
public class SKLearnModelSpec extends it.smartcommunitylabdhub.commons.models.model.SKLearnModelSpec { | ||
} | ||
public class SKLearnModelSpec extends ModelSpec {} |