File size: 1,944 Bytes
63eeaaa cfcd435 63eeaaa df9ad43 c41f3af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
---
title: IndexRL
emoji: π₯
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 3.35.2
python_version: 3.8.9
app_file: app.py
pinned: false
license: mit
---
# IndexRLApp
Gradio app to generate remote sensing indices for properties defined by image-mask pairs.
## How to Install
IndexRL can be installed using the following two commands. However, it is recommended that you create a virtual environment prior to pip installation.
```cmd
pip install -r requirements.txt
python app.py
```
## Upload a Dataset
1. Set up the file structure of your dataset as follows.
```
.
βββ dataset/
βββ images/
β βββ img1.npy
β βββ img2.npy
β βββ ...
βββ masks/
βββ mask1.npy
βββ mask2.npy
βββ ...
```
2. Create a zip file for the dataset
```cmd
cd dataset
zip -r dataset.zip *
```
3. Go to the `Datasets` tab on IndexRL, upload the created zip file, give a name for the dataset, and press the `Upload` button.

## Generate Remote Sensing Indices
1. Go to the `Find Expressions` tab, select the dataset from the dropdown and click the `Find Expressions` button. With time, more and more expressions will be generated.
2. Obtain the top 5 expressions from the `Best Expressions` box.
3. Visualize and debug the expression search tree from the panels on the right.
- `Iteration` refers to each generated expression.
- `Tree Number` refers to the index of the expression tree that resulted in the selection of each symbol of the expression.
- `Expression Tree` displays the tree of symbols explored by the RL agent and the scores observed if each of those symbols were chosen. As you change the `Tree Number`, you can observe how the tree for the next choice of symbol.

|