Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

Well thanks for the responses With your help i have constructed the following (Pandas is great !!! ) import pandas as pd def noOfDifferentElements(matrix1,matrix2): pinput1 = pd.DataFrame(matrix1...
masteripper General Coding Help 15 5,282 Nov-03-2019, 05:41 PM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

(Nov-02-2019, 09:03 AM)DeaD_EyE Wrote: from itertools import chain # converting your input data to a valid Python object: A = """ 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 ""...
masteripper General Coding Help 15 5,282 Nov-02-2019, 12:33 PM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

(Nov-01-2019, 11:51 PM)newbieAuggie2019 Wrote: (Nov-01-2019, 09:20 PM)masteripper Wrote: I am thinking that this might be slower...but thanks for replying. Hi again! My answer is probably quite v...
masteripper General Coding Help 15 5,282 Nov-02-2019, 08:22 AM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

(Nov-01-2019, 08:33 PM)newbieAuggie2019 Wrote: (Nov-01-2019, 10:22 AM)masteripper Wrote: Suppose you have 3 matrices : A = 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 1 ...
masteripper General Coding Help 15 5,282 Nov-01-2019, 09:20 PM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

(Nov-01-2019, 12:54 PM)DeaD_EyE Wrote: The answer is C. C has more equal elements with A as B with A. I solved it with a nested loop, but you can also serialize the matrix with itertools.chain.from...
masteripper General Coding Help 15 5,282 Nov-01-2019, 06:46 PM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

Exactly as you see them..
masteripper General Coding Help 15 5,282 Nov-01-2019, 10:46 AM
    Thread: Partial "visual" Matching of matrices
Post: RE: Partial "visual" Matching of matrices

How to find the match Well i think i might have an idea... I will subtract the matrices and count the values different to zero.... hmmm...maybe i will try that....
masteripper General Coding Help 15 5,282 Nov-01-2019, 10:31 AM
    Thread: Partial "visual" Matching of matrices
Post: Partial "visual" Matching of matrices

Hello, I have this issue and i am a bit short on ideas on how to resolve it Suppose you have 3 matrices : A = 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 B = 0 1 0...
masteripper General Coding Help 15 5,282 Nov-01-2019, 10:22 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020