Files
iNaturalistReactNative/tests/factories/ModelPrediction.js
Johannes Klein e4d7e337e7 Consolidate vision returns (#1239)
* Use latest vision-plugin from feature branch

* Change model helper to TS

* Update prediction from image to the new return structure

* Rename variable

* Change ARCamera to new return structure

* Update all test that make use of predictions

* Update to use plugins main branch
2024-03-01 00:23:52 +01:00

18 lines
332 B
JavaScript

import { define } from "factoria";
export default define( "ModelPrediction", faker => ( {
name: faker.person.fullName( ),
rank_level: faker.helpers.arrayElement( [
100,
70,
60,
50,
40,
30,
20,
10
] ),
score: faker.number.float( { min: 0.8, max: 1 } ),
taxon_id: faker.number.int( )
} ) );