mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-21 14:08:31 -04:00
* 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
18 lines
332 B
JavaScript
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( )
|
|
} ) );
|