Claude/translate iboss matlab to r o3 p4 o#3
Open
StefanoCipolla wants to merge 6 commits intoOssifragus:masterfrom
Open
Claude/translate iboss matlab to r o3 p4 o#3StefanoCipolla wants to merge 6 commits intoOssifragus:masterfrom
StefanoCipolla wants to merge 6 commits intoOssifragus:masterfrom
Conversation
- iboss_od.m: Native MATLAB port of the R iboss.od() function for Information-Based Optimal Subdata Selection in linear regression. Supports both univariate and multivariate covariates, with optional intercept adjustment using full-data means. - iboss_demo.m: Demo script replicating the R package example with multivariate t-distributed covariates, including comparison against full-data OLS. https://claude.ai/code/session_01LaRwUj5TgHCq2hKP3puUJR
…DxKuL Add MATLAB implementation of IBOSS algorithm
Translates the MATLAB experimental script to R, using the original iboss.od() function with its compiled C++ backend (getIdx/getIdxR) instead of the pure-MATLAB reimplementation. Reads .mat data files via R.matlab::readMat and computes the D-optimality objective log(det(X_S * X_S')) for each problem instance. https://claude.ai/code/session_01TYn581iJVFKwrT3BYBJvBP
Author
|
No |
…anslation Port getIdx() and getIdxR() from src/getIdx.cpp (R C API) to MATLAB MEX API, preserving the same O(n) std::nth_element algorithm. iboss_od_mex.m mirrors iboss.r by delegating index selection to the compiled C++ routines. New files: - matlab/getIdx_mex.cpp – MEX port of getIdx (unrestricted) - matlab/getIdxR_mex.cpp – MEX port of getIdxR (restricted, with exclusion) - matlab/iboss_od_mex.m – iboss_od rewritten to call MEX functions - matlab/compile_mex.m – one-step build script https://claude.ai/code/session_01TYn581iJVFKwrT3BYBJvBP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rscript