-
Notifications
You must be signed in to change notification settings - Fork 17
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
ML XGBoost Classification #484
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0833d4e
Issue #460 doc crossreferences between filter_bbox/filter_spatial/fil…
soxofaan c130dd7
Move tests to dev
m-mohr 836a84b
Merge remote-tracking branch 'origin/draft' into draft
m-mohr c2d77e2
Use x \ y instead of a \ b
m-mohr 13c3f85
`sqrt`: Clarified that NaN is returned for negative numbers #474 (#475)
m-mohr 4fd92b2
`clip`: Throw an exception if min > max #472 (#477)
m-mohr ab4a62e
`array_append`: Added `number` type for labels to be consistent with …
m-mohr f303adf
`filter_spatial`: Clarify masking (#470)
m-mohr d8cf96a
`between`: Clarify that `null` is passed through
m-mohr 899b824
`eq` and `neq`: Explicitly set the minimum value for the `delta` para…
m-mohr ab2e6c2
Clarify linear_scale_range
m-mohr a306cae
xgboost classification specification
PondiB b4068d6
xgboost classification specification
PondiB e98dd7f
reset
PondiB ff1599a
reset using ml branch
PondiB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules/ | ||
/package-lock.json | ||
/processes.json |
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,57 @@ | ||
0-to-9 | ||
1-to-0 | ||
anno | ||
behavior | ||
boolean | ||
center | ||
centers | ||
dekad | ||
DEM-based | ||
Domini | ||
gamma0 | ||
GeoJSON | ||
FeatureCollections | ||
labeled | ||
MathWorld | ||
n-ary | ||
neighbor | ||
neighborhood | ||
neighborhoods | ||
openEO | ||
orthorectification | ||
orthorectified | ||
radiometrically | ||
reflectances | ||
reproject | ||
reprojected | ||
Reprojects | ||
resample | ||
resampled | ||
resamples | ||
Resamples | ||
resampling | ||
Sentinel-2 | ||
Sentinel-2A | ||
Sentinel-2B | ||
signum | ||
STAC | ||
catalog | ||
Catalog | ||
summand | ||
UDFs | ||
gdalwarp | ||
Lanczos | ||
sinc | ||
interpolants | ||
Breiman | ||
Hyndman | ||
date1 | ||
date2 | ||
favor | ||
XGBoost | ||
Chen | ||
Guestrin | ||
early_stopping_rounds | ||
Subsample | ||
hessian | ||
overfitting |
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,30 @@ | ||
# Tests for openEO Processes | ||
|
||
To run the tests follow these steps: | ||
|
||
1. Install [node and npm](https://nodejs.org) - should run with any recent version | ||
2. Run `npm install` in this folder to install the dependencies | ||
3. Run the tests with `npm test`. This will also lint the files and verify it follows best practices. | ||
4. To show the files nicely formatted in a web browser, run `npm start`. It starts a server and opens the corresponding page in a web browser. | ||
|
||
## Development processes | ||
|
||
All new processes must be added to the `proposals` folder. Each process must be declared to be `experimental`. | ||
Processes must comply to best practices, which ensure a certain degree of consistency. | ||
`npm test` will validate and lint the processes and also ensure the best practices are applied. | ||
|
||
The linting checks that the files are named correctly, that the content is correctly formatted and indented (JSON and embedded CommonMark). | ||
The best practices ensure that for examples the fields are not too short and also not too long for example. | ||
|
||
A spell check is also checking the texts. It may report names and rarely used technical words as errors. | ||
If you are sure that these are correct, you can add them to the `.words` file to exclude the word from being reported as an error. | ||
The file must contain one word per line. | ||
|
||
New processes should be added via GitHub Pull Requests. | ||
|
||
## Subtype schemas | ||
|
||
Sometimes it is useful to define a new "data type" on top of the JSON types (number, string, array, object, ...). | ||
For example, a client could make a select box with all collections available by adding a subtype `collection-id` to the JSON type `string`. | ||
If you think a new subype should be added, you need to add it to the `meta/subtype-schemas.json` file. | ||
It must be a valid JSON Schema. The tests mentioned above will also verify to a certain degree that the subtypes are defined correctly. |
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,125 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>openEO API Processes</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@openeo/processes-docgen@1/dist/DocGen.umd.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@openeo/processes-docgen@1/dist/DocGen.css"> | ||
<style> | ||
html { | ||
box-sizing: border-box; | ||
text-size-adjust: none; | ||
height: 100%; | ||
font-size: 62.5%; | ||
overflow-x: hidden; | ||
} | ||
|
||
@media only screen and (min-width: 100em) { | ||
html { | ||
font-size: 68.75%; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 125em) { | ||
html { | ||
font-size: 75%; | ||
} | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
position: relative; | ||
height: 100%; | ||
} | ||
|
||
hr { | ||
overflow: visible; | ||
box-sizing: content-box; | ||
display: block; | ||
height: 0.1rem; | ||
padding: 0; | ||
border: 0; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
small { | ||
font-size: 80%; | ||
} | ||
|
||
sub, sup { | ||
position: relative; | ||
font-size: 80%; | ||
line-height: 0; | ||
vertical-align: baseline; | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
} | ||
sup { | ||
top: -0.5em; | ||
} | ||
|
||
table { | ||
border-collapse: separate; | ||
border-spacing: 0; | ||
} | ||
|
||
body, input { | ||
color: rgba(0, 0, 0, 0.87); | ||
-webkit-font-feature-settings: "kern", "liga"; | ||
font-feature-settings: "kern", "liga"; | ||
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
} | ||
|
||
pre, code, kbd { | ||
color: rgba(0, 0, 0, 0.87); | ||
-webkit-font-feature-settings: "kern"; | ||
font-feature-settings: "kern"; | ||
font-family: "Roboto Mono", "Courier New", Courier, monospace; | ||
} | ||
|
||
.anchor { | ||
position: relative; | ||
display: block; | ||
visibility: hidden; | ||
} | ||
|
||
#container { | ||
font-size: 1.45rem; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body dir="ltr"> | ||
<div id="container"> | ||
<div id="app"></div> | ||
</div> | ||
<script> | ||
new Vue({ | ||
el: '#app', | ||
render: h => h(DocGen, { | ||
props: { | ||
document: 'processes.json', | ||
categorize: true, | ||
apiVersion: '1.2.0', | ||
title: 'openEO processes (2.0.0-rc.1)', | ||
notice: '**Note:** This is the list of all processes specified by the openEO project. Back-ends implement a varying set of processes. Thus, the processes you can use at a specific back-end may derive from the specification, may include non-standardized processes and may not implement all processes listed here. Please check each back-end individually for the processes they support. The client libraries usually have a function called `listProcesses` or `list_processes` for that.' | ||
} | ||
}) | ||
}); | ||
</script> | ||
<noscript>Sorry, the documentation generator requires JavaScript to be enabled!</noscript> | ||
</body> | ||
</html> |
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,30 @@ | ||
{ | ||
"name": "@openeo/processes", | ||
"version": "2.0.0-rc.1", | ||
"author": "openEO Consortium", | ||
"contributors": [ | ||
{ | ||
"name": "Matthias Mohr" | ||
} | ||
], | ||
"license": "Apache-2.0", | ||
"description": "Validates the processes specified in this repository.", | ||
"homepage": "http://openeo.org", | ||
"bugs": { | ||
"url": "https://github.com/Open-EO/openeo-processes/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Open-EO/openeo-processes.git" | ||
}, | ||
"devDependencies": { | ||
"@openeo/processes-lint": "^0.1.5", | ||
"concat-json-files": "^1.1.0", | ||
"http-server": "^14.1.1" | ||
}, | ||
"scripts": { | ||
"test": "openeo-processes-lint testConfig.json", | ||
"generate": "concat-json-files \"../{*,proposals/*}.json\" -t \"processes.json\"", | ||
"start": "npm run generate && http-server -p 9876 -o docs.html -c-1" | ||
} | ||
} |
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,14 @@ | ||
{ | ||
"folder": "../", | ||
"proposalsFolder": "../proposals/", | ||
"ignoredWords": ".words", | ||
"anyOfRequired": [ | ||
"array_element", | ||
"quantiles" | ||
], | ||
"subtypeSchemas": "../meta/subtype-schemas.json", | ||
"checkSubtypeSchemas": true, | ||
"forbidDeprecatedTypes": false, | ||
"checkProcessLinks": true, | ||
"verbose": false | ||
} |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this practically mean here in this context of defining a JSON schema? Isn't that more a concern of a process like
save_ml_model
that actually "exports" the model to a more concrete form?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was to remove the error due to the ml model being returned. I created a branch from the draft and not the ml branch.