Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress Bar #24

Closed
Thilakraj1998 opened this issue Sep 29, 2021 · 6 comments
Closed

Progress Bar #24

Thilakraj1998 opened this issue Sep 29, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request Hacktoberfest For participants in Hacktoberfest help wanted Extra attention is needed

Comments

@Thilakraj1998
Copy link
Contributor

Thilakraj1998 commented Sep 29, 2021

Add a Python progress bar on the train function, to indicate to the user the current training progress.

model=bc.train("datasetpath","target")

File to refer : https://github.com/blobcity/autoai/blob/main/blobcity/main/driver.py

Example progress bars in Python: https://www.geeksforgeeks.org/progress-bars-in-python/

For accurate progress reporting, create an execution profile to estimate the total number of epochs/steps. Increment the process bar as each training epoch or step is completed.

The progress bar should display correctly in both terminal / command prompt execution, as well as when executing within a Jupyter Notebook.

@Thilakraj1998 Thilakraj1998 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed Hacktoberfest For participants in Hacktoberfest and removed good first issue Good for newcomers labels Sep 29, 2021
@kjura
Copy link

kjura commented Oct 18, 2021

Hello, can I contribute to this project? Is it still open?

@Thilakraj1998
Copy link
Contributor Author

Thilakraj1998 commented Oct 18, 2021

Hello, can I contribute to this project? Is it still open?

Yes, you can contribute to this project.
Just let as know, which issue you would like to work on.

@kjura
Copy link

kjura commented Oct 18, 2021

I thought about tackling this issue (issue #24) with progress bar.

As far as I understand, the first step would be to decide whether to use tqdm/progressbar. Would you recommend first to implement bar for terminal/command prompt or Jupyter?

@Thilakraj1998
Copy link
Contributor Author

I thought about tackling this issue (issue #24) with progress bar.

As far as I understand, the first step would be to decide whether to use tqdm/progressbar. Would you recommend first to implement bar for terminal/command prompt or Jupyter?

@kjura first with jupyter

@kjura
Copy link

kjura commented Oct 18, 2021

Thanks for the details, right now I have managed to install necessary packages from requirements.txt (I have created virtual environment locally using venv) and I guess my next step is to run train() function. But I've been fighting with running driver.py file. Namely, when I try to run it the following is rising before my eyes (Ubuntu 20.10):

Traceback (most recent call last): File "driver.py", line 23, in <module> from blobcity.store import DictClass ModuleNotFoundError: No module named 'blobcity'

The below goes from line 21 (top) to 27 (bottom) (driver.py file)

import pickle
import tensorflow as tf
from blobcity.store import DictClass
from blobcity.utils import getDataFrameType,dataCleaner
from blobcity.utils import AutoFeatureSelection as AFS
from blobcity.main.modelSelection import modelSearch
from blobcity.code_gen import yml_reader,code_generator

I guess, it has to do with relative/absolute module searching (I have not installed blobcity via PIP yet. I tried to just use files coming directly from the build). This is the current tree (my local platform) for blobcity:

blobcity/
├── code_gen
│   ├── Generator.py
│   ├── init.py
│   ├── pycache
│   │   ├── Generator.cpython-38.pyc
│   │   ├── init.cpython-38.pyc
│   │   ├── PyMeta.cpython-38.pyc
│   │   └── SourceCodes.cpython-38.pyc
│   ├── PyMeta.py
│   └── SourceCodes.py
├── config
│   ├── classifier_config.py
│   ├── init.py
│   ├── pycache
│   │   ├── classifier_config.cpython-38.pyc
│   │   ├── init.cpython-38.pyc
│   │   ├── regressor_config.cpython-38.pyc
│   │   └── tuner.cpython-38.pyc
│   ├── regressor_config.py
│   └── tuner.py
├── init.py
├── main
│   ├── driver.py
│   ├── init.py
│   ├── modelSelection.py
│   └── pycache
│   ├── driver.cpython-38.pyc
│   ├── init.cpython-38.pyc
│   └── modelSelection.cpython-38.pyc
├── pycache
│   └── init.cpython-38.pyc
├── store
│   ├── DictClass.py
│   ├── init.py
│   ├── Model.py
│   └── pycache
│   ├── DictClass.cpython-38.pyc
│   ├── init.cpython-38.pyc
│   └── Model.cpython-38.pyc
└── utils
├── AutoFeatureSelection.py
├── Cleaner.py
├── FileType.py
├── init.py
├── ProblemType.py
├── pycache
│   ├── AutoFeatureSelection.cpython-38.pyc
│   ├── Cleaner.cpython-38.pyc
│   ├── FileType.cpython-38.pyc
│   ├── init.cpython-38.pyc
│   ├── ProblemType.cpython-38.pyc
│   └── YamlGenerator.cpython-38.pyc
└── YamlGenerator.py

Am I overkilling it and testing (and running) should be smooth and maybe approached differently than my idea? Before running in Jupyter I wanted to run it in the terminal.

@Thilakraj1998
Copy link
Contributor Author

Thilakraj1998 commented Oct 19, 2021

@kjura

To test locally execute either ClassificationTest.py or RegressionTest.py file which is in the autoai directory

@Thilakraj1998 Thilakraj1998 self-assigned this Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest For participants in Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants