Skip to main content

A package for running predictions using fAIr

Project description

fAIr Predictor

Run your fAIr Model Predictions anywhere !

Example on Collab

# Install 
!pip install fairpredictor

# Import 
from predictor import predict

# Parameters for your predictions 
bbox=[100.56228021333352,13.685230854641182,100.56383321235313,13.685961853747969]
model_path='checkpoint.h5'
zoom_level=20
tms_url='https://tiles.openaerialmap.org/6501a65c0906de000167e64d/0/6501a65c0906de000167e64e/{z}/{x}/{y}'

# Run your prediction 
my_predictions=predict(bbox,model_path,zoom_level,tms_url)
print(my_predictions)

## Visualize your predictions 

import geopandas as gpd
import matplotlib.pyplot as plt
gdf = gpd.GeoDataFrame.from_features(my_predictions)
gdf.plot()
plt.show()

Debug

if you run into import problem , you might need to install efficientnet and import it

!pip install efficientnet
import efficientnet.keras as efn

Works on CPU ! Can work on serverless functions, No other dependencies to run predictions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fairpredictor-0.0.11.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file fairpredictor-0.0.11.tar.gz.

File metadata

  • Download URL: fairpredictor-0.0.11.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for fairpredictor-0.0.11.tar.gz
Algorithm Hash digest
SHA256 927d056307186a6c20e53a37d63771580c4b8ad74c059b115970dc69fa22bff7
MD5 e95894945e79b4fbea9613f725969a50
BLAKE2b-256 bba54b639aaf5318db07f22fa41d68b4a482cd172d455efc437e352d06213eb5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page