Gebe ich ein:
mupos = np.zeros((len(Y),X.shape[0]))
muneg = np.zeros((len(Y),X.shape[0]))
bekomme ich als Fehlermeldung:
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 3991 is different from 310)
Aber ich bin ...
Die Suche ergab 5 Treffer
- Donnerstag 30. Mai 2019, 13:32
- Forum: Wissenschaftliches Rechnen
- Thema: Problem mit Linear Discriminant Analysis
- Antworten: 8
- Zugriffe: 1278
- Donnerstag 30. Mai 2019, 13:08
- Forum: Wissenschaftliches Rechnen
- Thema: Problem mit Linear Discriminant Analysis
- Antworten: 8
- Zugriffe: 1278
Re: Problem mit Linear Discriminant Analysis
bei mupos soll Y label vector of length N +1 stehen.
Y stellt die unterschiedlichen Labels vor.
Der Ausdruck
print(Y)
print(np.unique(Y))
print(Y.size)
liefert das Ergebnis:
[-1. -1. 1. ... 1. -1. -1.]
[-1. 1.]
5322
Also es ist ein 1-dimensionales Array , bestehend aus der Zuordnung -1 und ...
Y stellt die unterschiedlichen Labels vor.
Der Ausdruck
print(Y)
print(np.unique(Y))
print(Y.size)
liefert das Ergebnis:
[-1. -1. 1. ... 1. -1. -1.]
[-1. 1.]
5322
Also es ist ein 1-dimensionales Array , bestehend aus der Zuordnung -1 und ...
- Donnerstag 30. Mai 2019, 12:54
- Forum: Wissenschaftliches Rechnen
- Thema: Problem mit Linear Discriminant Analysis
- Antworten: 8
- Zugriffe: 1278
Re: Problem mit Linear Discriminant Analysis
mupos= Y label vector of length N 1
muneg= Y label vector of length N -1
muneg= Y label vector of length N -1
- Donnerstag 30. Mai 2019, 12:43
- Forum: Wissenschaftliches Rechnen
- Thema: Problem mit Linear Discriminant Analysis
- Antworten: 8
- Zugriffe: 1278
Re: Problem mit Linear Discriminant Analysis
Ich habe folgendes versucht:
Der w vektor ist die Differenz von mupos und muneg. Nur kann ich die nicht subtrahieren, da die Vektoren unterschiedlich groß sind.
Was kann man da tun ?
Code: Alles auswählen
mupos = np.zeros((len(np.unique(Y)),X.shape[1]))
muneg = np.zeros((len(np.unique(Y)),X.shape[0]))Der w vektor ist die Differenz von mupos und muneg. Nur kann ich die nicht subtrahieren, da die Vektoren unterschiedlich groß sind.
Was kann man da tun ?
- Donnerstag 30. Mai 2019, 12:29
- Forum: Wissenschaftliches Rechnen
- Thema: Problem mit Linear Discriminant Analysis
- Antworten: 8
- Zugriffe: 1278
Problem mit Linear Discriminant Analysis
Hi,
ich habe Probleme bei einer Abgabe.
In this assignment you will estimate cognitive states from electroencephalogram (EEG) data. The data matrix X contains 5 selected time windows of EEG activity at 62 electrodes after a visual stimulus was presented on the screen in front of the subject. If ...
ich habe Probleme bei einer Abgabe.
In this assignment you will estimate cognitive states from electroencephalogram (EEG) data. The data matrix X contains 5 selected time windows of EEG activity at 62 electrodes after a visual stimulus was presented on the screen in front of the subject. If ...
