Cocoon Grade Sorting Classifier
Classify observed cocoons by a caller descending shell-percent grade schedule with explicit defect/reject codes; no universal trade grade or health certification.
Description
A grading policy assigns the first qualifying descending shell threshold.
A grading policy assigns the first qualifying descending shell threshold. Defects can override percentage-based grades.
Classify observed cocoons by a caller descending shell-percent grade schedule with explicit defect/reject codes; no universal trade grade or health certification.
When to use Cocoon Grade Sorting Classifier
Use this tool to classify observed cocoons by a caller descending shell-percent grade schedule with explicit defect/reject codes; no universal trade grade or health certification.
Prepare cocoon, larval, leaf or reeling measurements on a consistent batch and moisture basis. Use the declared mass, length and time units.
How to use Cocoon Grade Sorting Classifier and understand its results
- Prepare cocoon, larval, leaf or reeling measurements on a consistent batch and moisture basis. Use the declared mass, length and time units.
- Enter shellPercents, defectFlags, descendingMinimumShellPercents, callerGradeCodes, rejectGradeCode using the field table and calculation rules, then run the tool.
- Read assignedGradeCodes. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| shellPercents | Shell percents | list of number | Required |
| defectFlags | Defect flags | list of number | Required |
| descendingMinimumShellPercents | Descending minimum shell percents | list of number | Required |
| callerGradeCodes | Caller grade codes | list of number | Required |
| rejectGradeCode | Reject grade code | integer | Required |
Align shell percents in [0,100] with binary defects, and up to 128 strictly descending thresholds with unique integer codes distinct from reject. Defects and no matching threshold return reject; equality qualifies. Workload is bounded.1
Paired lists must be nonempty and have equal lengths.
grade = first caller code whose minimum shell percent ≤ measured percent Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| assignedGradeCodes | Assigned grade codes | list of number |
{
"input": {
"shellPercents": [
25,
18,
10
],
"defectFlags": [
0,
0,
1
],
"descendingMinimumShellPercents": [
20,
15
],
"callerGradeCodes": [
1,
2
],
"rejectGradeCode": 9
},
"output": {
"assignedGradeCodes": [
1,
2,
9
]
}
} Limitations and assumptions
Caller grades are not universal trade grades or health certification.
Numbers and computed results must be finite; overflow produces an error. Numeric lists are limited to 100,000 entries; the rules above may require smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Cocoon Price From Shell Percent: Interpolate a supplied auction shell-percent price schedule and quality multiplier without market-price defaults or out-of-range extrapolation. For a complementary task, use Double Cocoon Percent Defect Rate: Audit double-cocoon count share and a caller equal-mass price-discount scenario; count share is not claimed to be measured double-cocoon mass share.
References
-
Cocoon Grade Sorting Classifier — tool.io
Similar or alternative tools
- Cocoon Price From Shell Percent
Interpolate a supplied auction shell-percent price schedule and quality multiplier without market-price defaults or out-of-range extrapolation.
- Double Cocoon Percent Defect Rate
Audit double-cocoon count share and a caller equal-mass price-discount scenario; count share is not claimed to be measured double-cocoon mass share.