Skip to content

fix: resolve critical bugs across notebooks - #2

Open
belowzeroff wants to merge 1 commit into
DataIntellectTech:mainfrom
belowzeroff:fix/critical-bugs
Open

fix: resolve critical bugs across notebooks#2
belowzeroff wants to merge 1 commit into
DataIntellectTech:mainfrom
belowzeroff:fix/critical-bugs

Conversation

@belowzeroff

Copy link
Copy Markdown

Critical Bug Fixes

This PR fixes critical and major bugs found across the project codebase.

Image Search

  • os.remove string literal: os.remove("{filepath}") used a string literal instead of the variable filepath — files were never actually deleted
  • class_mode mismatch: class_mode="binary" used for 4-class classification — changed to "categorical"
  • Incorrect output layer: Dense(2048, activation='softmax') for 4 classes — changed to Dense(4, activation='softmax')

Time Series

  • plt NameError: Cell re-imported matplotlib as plot but later used plt — fixed alias consistency
  • ax NameError: Cells used ax.set_ylabel() without creating ax — switched to pyplot equivalents
  • Deprecated DataFrame.append(): Replaced with pd.concat() (removed in pandas 2.0)

TorQBot

  • aadd_texts coroutine never awaited: Critical runtime bug — texts were never added to vector DB
  • foo3 copy-paste error: foo3 used texts1 instead of texts4

Project Config

  • Added .gitignore to exclude .maestri, checkpoints, cache, and generated files

- Fix os.remove('{filepath}') string literal bug (used quotes around variable)
- Fix class_mode='binary' to 'categorical' for 4-class classification
- Fix Dense(2048) output layer to Dense(4) for 4 classes
- Fix plt undefined NameError by using correct plot alias
- Fix ax undefined NameError by switching to pyplot interface
- Fix deprecated DataFrame.append() to pd.concat()
- Fix aadd_texts coroutine never awaited (added await)
- Fix foo3 copy-paste error (used texts1 instead of texts4)
- Add .gitignore to exclude .maestri and generated files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant