Trusted-AI / Trusted-AI/AIX360

Protodash Array Size

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
327
Avg merge
1h 13m
Merged PRs (30d)
1

Description

The following does not work:

explainer.explain(X= [500,000,:64], Y= [50,000,:64], m=60,000 ) 
ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 3545 and the array at index 1 has size 3544

If we purely want to select from X I don't see why when m>Y.shape[0], there should be a problem?

image

Also in the heloc example, you take S from Y, how does that makes sense with the above description.

image image

Also if I had the ordering wrong, I also switched them around to no effect,

explainer.explain(X= [50,000,:64]  , Y= [500,000,:64], m=60,000 ) 
    273                 [newCurrOptw, value] = runOptimiser(currK, curru, currOptw, maxGradient)
--> 274                 newCurrSetValue = -value
    275 
    276         currOptw = newCurrOptw

TypeError: bad operand type for unary -: 'NoneType'

Here is a reproducible example to play with - maybe about 5 mins to run. (reset kernel after installs)

https://colab.research.google.com/drive/1FdafzzZku0RgJEk7Zf_rJ1lLuciRF0YD

Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Colab reproducible example and run both explainer.explain calls shown in the issue. Trace the array concatenation error and the NoneType failure from the reported stack trace, then compare them with the heloc example's use of S. Done means the reported inputs behave consistently with the documented X, Y, and m semantics.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.