How to augment a machine learning matrix?

  • A
  • Thread starter strat468
  • Start date
  • #1
strat468
7
1
TL;DR Summary
augmenting a machine learning matrix
I have this equation which my professor has told me is correct so far.

##0 = -2*x^T(y-2(w*x+b))##

where
##x=\begin{bmatrix}
1 \\
2
\end{bmatrix}##
##y = 6##
##w =
\begin{bmatrix}
w1 & w2
\end{bmatrix}
##
##b = [b1]##

He told me to then augment w and b into one matrix in order to solve for both w and b.

How on earth do I do that?
 
Last edited:
Physics news on Phys.org
  • #2
Start by computing ##w \cdot x + b## to get an expression in w1, w2 and b1 and go from there.

I'm assuming you meant to solve:

##0 = −2 \cdot x^T (y−2(w \cdot x+b)##

Also please use Latex to enter your expressions and show us your work. Our site uses Mathjax to render Latex and wew have a small guide to help you. See the link in my signature below.
 
  • #3
jedishrfu said:
Start by computing ##w \cdot x + b## to get an expression in w1, w2 and b1 and go from there.

I'm assuming you meant to solve:

##0 = −2 \cdot x^T (y−2(w \cdot x+b)##

Also please use Latex to enter your expressions and show us your work. Our site uses Mathjax to render Latex and we have a small guide to help you. See the link in my signature below.
Yes! Sorry Im new, I didnt know
 
  • #5
Ill check out that resource.

Im not trying to be negative but Im reading that LaTeX guide, and Im putting delimiters in and its not doing anything
 
  • #6
Ok got LaTeX working! Now I just need to figure out how to augment this
 
Last edited:
  • Like
Likes jedishrfu
  • #7
The equation in your first post is somewhat confusing. ##w \cdot x## is a scalar and so wx+b is also a scalar leading to the conclusion that ##0## must be the zero row vector [0 0] ?
 
  • #8
How is ##w*x## a scalar? x is a 2x1 matrix and w is a 1x2 matrix


I changed the formatting a bit so its easier to read
 
  • #9
I see what youre implying. ##w*x## would be a scalar because it ends up being a 1x1 matrix. Youre correct.

All he told me was to set my equation to 0 and then solve for w and b. I then asked him how I solve for two unknown variables with only one equation and his reply was to augment w and b into one matrix.
 
  • #10
strat468 said:
TL;DR Summary: augmenting a machine learning matrix

I have this equation which my professor has told me is correct so far.
##0 = -2*x^T(y-2(w*x+b))##

where
##x=\begin{bmatrix} 1 \\ 2 \end{bmatrix}##
##y = 6##
##w = \begin{bmatrix} w1 & w2 \end{bmatrix}##
##b = [b1]##
I'm a bit confused by this. x is defined as a 2 x 1 column vector. In the first equation, ##x^T## would therefore have to be a 1 x 2 row vector. Is this correct?

It would be useful to see the actual problem description as given by your professor.
 
  • #11
1712540919130.png


I am currently on part 3
After pestering him over and over about this he finally gave me this....
1712541102996.png


But now the problem Im running into is
1712541130314.png

is a singular matrix making
1712541180938.png

impossible
 

Similar threads

  • Linear and Abstract Algebra
Replies
4
Views
1K
Replies
24
Views
1K
  • Linear and Abstract Algebra
Replies
5
Views
948
  • Linear and Abstract Algebra
Replies
8
Views
823
Replies
27
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
797
  • Linear and Abstract Algebra
Replies
2
Views
954
  • Linear and Abstract Algebra
Replies
7
Views
832
  • Linear and Abstract Algebra
Replies
2
Views
976
Replies
34
Views
2K
Back
Top