forked from matsim-org/matsim-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into consolidateZones
- Loading branch information
Showing
44 changed files
with
727 additions
and
277 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
contribs/application/src/main/java/org/matsim/application/prepare/Predictor.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,32 @@ | ||
package org.matsim.application.prepare; | ||
|
||
import it.unimi.dsi.fastutil.objects.Object2DoubleMap; | ||
import it.unimi.dsi.fastutil.objects.Object2ObjectMap; | ||
|
||
/** | ||
* Predictor interface for arbitrary numeric values. | ||
*/ | ||
public interface Predictor { | ||
|
||
|
||
/** | ||
* Predict value from given features. | ||
*/ | ||
double predict(Object2DoubleMap<String> features, Object2ObjectMap<String, String> categories); | ||
|
||
/** | ||
* Predict values with adjusted model params. | ||
*/ | ||
default double predict(Object2DoubleMap<String> features, Object2ObjectMap<String, String> categories, double[] params) { | ||
throw new UnsupportedOperationException("Not implemented"); | ||
} | ||
|
||
|
||
/** | ||
* Return data that is used for internal prediction function (normalization already applied). | ||
*/ | ||
default double[] getData(Object2DoubleMap<String> features, Object2ObjectMap<String, String> categories) { | ||
throw new UnsupportedOperationException("Not implemented"); | ||
} | ||
|
||
} |
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
Binary file added
BIN
+456 KB
contribs/application/test/input/org/matsim/application/options/example.gpkg
Binary file not shown.
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
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
Oops, something went wrong.