Skip to content

Make OWR compatible with GNU Octave 6.x+ - #2

Draft
abhijitbendale with Copilot wants to merge 5 commits into
masterfrom
copilot/make-owr-gnu-octave-compatible
Draft

Make OWR compatible with GNU Octave 6.x+#2
abhijitbendale with Copilot wants to merge 5 commits into
masterfrom
copilot/make-owr-gnu-octave-compatible

Conversation

Copilot AI commented Feb 17, 2026

Copy link
Copy Markdown

OWR code contained deprecated syntax, incomplete implementations, and compatibility issues preventing it from running on modern GNU Octave.

Changes

Compatibility Fixes

  • Function naming: readImageNetTrainDataOW_readImageNetTrainData (must match filename)
  • Deprecated syntax: clear allclear (removed in Octave 6.x+)
  • RandStream: randn(rs,NrP,NrD,'single')single(randn(rs,NrP,NrD)) (Octave-compatible syntax)
  • Syntax error: Fixed malformed legend string in plot_results_200.m

Completed Implementations

  • OW_CrossClass_Validation.m: Added threshold optimization via F1 score maximization over distance thresholds, maintaining target recall on known classes
  • OW_Demo.m: Added incremental learning workflow with proper data normalization and multi-scenario testing structure

Code Quality

  • Extracted magic numbers to named constants (TARGET_RECALL, THRESHOLD_STEP_SIZE)
  • Replaced disp(sprintf(...)) with direct fprintf calls

Example

Before (incompatible):

function [...] = readImageNetTrainData(...)  % Name mismatch
    clear all;  % Deprecated
    W = randn(rs,NrP,NrD,'single');  % Unsupported syntax

After (compatible):

function [...] = OW_readImageNetTrainData(...)  % Matches filename
    clear;  % Octave 6.x+ compatible
    W = single(randn(rs,NrP,NrD));  % Works in both MATLAB and Octave

All changes maintain backward compatibility with MATLAB R2014b+.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Continue Tasks: ▶️ 1 queued — View all

Copilot AI and others added 4 commits February 17, 2026 22:14
Co-authored-by: abhijitbendale <100012+abhijitbendale@users.noreply.github.com>
Co-authored-by: abhijitbendale <100012+abhijitbendale@users.noreply.github.com>
Co-authored-by: abhijitbendale <100012+abhijitbendale@users.noreply.github.com>
Co-authored-by: abhijitbendale <100012+abhijitbendale@users.noreply.github.com>
Copilot AI changed the title [WIP] Update OWR for compatibility with latest GNU Octave version Make OWR compatible with GNU Octave 6.x+ Feb 17, 2026
Copilot AI requested a review from abhijitbendale February 17, 2026 22:21
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.

2 participants