Fri Nov 22 00:36:01 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2017-03-01

LEARN

2024-11-22 | 2024-10-22 | 2024-09-22 | 2024-08-22 | 2024-07-22 | 2024-06-22 | 2024-05-22 | 2024-04-22 | 2024-03-22 | 2024-02-22 | 2024-01-22 | 2023-12-22 | 2023-11-22 | 2023-10-22 | 2023-09-22 | 2023-08-22 | 2023-07-22 | 2023-06-22 | 2023-05-22 | 2023-04-22 | 2023-03-22 | 2023-02-22 | 2023-01-22 | 2022-12-22 | 2022-11-22 | 2022-10-22 | 2022-09-22 | 2022-08-22 | 2022-07-22 | 2022-06-22 | 2022-05-22 | 2022-04-22 | 2022-03-22 | 2022-02-22 | 2022-01-22 | 2021-12-22 | 2021-11-22 | 2021-10-22 | 2021-09-22 | 2021-08-22 | 2021-07-22 | 2021-06-22 | 2021-05-22 | 2021-04-22 | 2021-03-22 | 2021-02-22 | 2021-01-22 | 2020-12-22 | 2020-11-22 | 2020-10-22 | 2020-09-22 | 2020-08-22 | 2020-07-22 | 2020-06-22 | 2020-05-22 | 2020-04-22 | 2020-03-22 | 2020-02-22 | 2020-01-22 | 2019-12-22 | 2019-11-22 | 2019-10-22 | 2019-09-22 | 2019-08-22 | 2019-07-22 | 2019-06-22 | 2019-05-22 | 2019-04-22 | 2019-03-22 | 2019-02-22 | 2019-01-22 | 2018-12-22 | 2018-11-22 | 2018-10-22 | 2018-09-22 | 2018-08-22 | 2018-07-22 | 2018-06-22 | 2018-05-22 | 2018-04-22 | 2018-03-22 | 2018-02-22 | 2018-01-22 | 2017-12-22 | 2017-11-22 | 2017-10-22 | 2017-09-22 | 2017-08-22 | 2017-07-22 | 2017-06-22 | 2017-05-22 | 2017-04-22 | 2017-03-22 | 2017-02-22 | 2017-01-22 | 2016-12-22 | 2016-11-22 | 2016-10-22 | 2016-09-22 | 2016-08-22 | 2016-07-22 | 2016-06-22 | 2016-05-22 | 2016-04-22 | 2016-03-22 | 2016-02-22 | 2016-01-22 | 2015-12-22 | 2015-11-22 | 2015-10-22 | 2015-09-22 | 2015-08-22 | 2015-07-22 | 2015-06-22 | 2015-05-22 | 2015-04-22 | 2015-03-22 | 2015-02-22 | 2015-01-22 | 2014-12-22 | 2014-11-22 | 2014-10-22

Key: Value:

Key: Value:

MESSAGE
DATE 2017-03-29
FROM Ruben Safir
SUBJECT Subject: [Learn] This is hard to understand what the logic is here
From learn-bounces-at-nylxs.com Wed Mar 29 01:31:31 2017
Return-Path:
X-Original-To: archive-at-mrbrklyn.com
Delivered-To: archive-at-mrbrklyn.com
Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82])
by mrbrklyn.com (Postfix) with ESMTP id 40C11161312;
Wed, 29 Mar 2017 01:31:31 -0400 (EDT)
X-Original-To: learn-at-nylxs.com
Delivered-To: learn-at-nylxs.com
Received: from [10.0.0.62] (flatbush.mrbrklyn.com [10.0.0.62])
by mrbrklyn.com (Postfix) with ESMTP id 3BD80160E77
for ; Wed, 29 Mar 2017 01:31:29 -0400 (EDT)
References: <430c32f2-da89-4077-b8a4-a5622fbb6b12.maildroid-at-localhost>
To: "learn-at-nylxs.com"
From: Ruben Safir
X-Forwarded-Message-Id: <430c32f2-da89-4077-b8a4-a5622fbb6b12.maildroid-at-localhost>
Message-ID: <712b3023-d054-3b79-5cc0-7bdb158e1e69-at-mrbrklyn.com>
Date: Wed, 29 Mar 2017 01:31:29 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <430c32f2-da89-4077-b8a4-a5622fbb6b12.maildroid-at-localhost>
Subject: [Learn] This is hard to understand what the logic is here
X-BeenThere: learn-at-nylxs.com
X-Mailman-Version: 2.1.17
Precedence: list
List-Id:
List-Unsubscribe: ,

List-Archive:
List-Post:
List-Help:
List-Subscribe: ,

Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: learn-bounces-at-nylxs.com
Sender: "Learn"



There is a bias included here.
The bias is treated as a weight corresponding to a "pseudo" input that
is always 1. So for a perceptron with 2 regular inputs, the weight
vector will have size 3.

That while loop just appends ones to the input vector until it's big
enough to do a dot product of the inputs and weights.
The step function returns 0 or 1 but represents them as float because we
might want to substitute a different function, such as sigmoid, which
would need floats.
CL

-----Original Message-----
From: Ruben Safir
To: Christopher League , "learn-at-nylxs.com"

Sent: Wed, 29 Mar 2017 1:16
Subject: This is hard to understand what the logic is here

float feed_forward(const perceptron& p, vector& input)
{
// If input size doesn't match, add "bias" inputs:
while(input.size() < p.weights.size()) {
input.push_back(1);
}
return step_function(p.threshold, dot_product(p.weights, input));
}


step_function should return an INT

What is the logic to this? Don't you always need the bias?

https://gitlab.liu.edu/cs691s17/public/raw/1dd68b2f00b96db17a988242221f50e4eab7ddbb/perceptrons/perceptrons.cpp

_______________________________________________
Learn mailing list
Learn-at-nylxs.com
http://lists.mrbrklyn.com/mailman/listinfo/learn

  1. 2017-03-02 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] neutal networks and pacman
  2. 2017-03-02 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Ultrametric networks: a new tool for phylogenetic analysis
  3. 2017-03-05 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] cost in evolution
  4. 2017-03-09 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] CatScan fossil files
  5. 2017-03-10 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] neural Networks and Quantum Mechanics
  6. 2017-03-12 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] I just found a GREAT video on partial derivatives
  7. 2017-03-13 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] Contact DOJ and thell them to blow it out their ass
  8. 2017-03-14 Ruben Safir <ruben-at-mrbrklyn.com> Re: [Learn] CatScan fossil files
  9. 2017-03-14 Ramon Nagesan <ramon.nagesan-at-gmail.com> Re: [Learn] CatScan fossil files
  10. 2017-03-16 Ruben Safir <ruben-at-mrbrklyn.com> Re: [Learn] is this up
  11. 2017-03-16 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] hang out is down
  12. 2017-03-16 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] is this working
  13. 2017-03-16 Charlie Gonzalez <itcharlie-at-gmail.com> Subject: [Learn] Registration for The Perl Conference 2017 is now open!!
  14. 2017-03-16 From: "soledad.esteban" <soledad.esteban-at-icp.cat> Subject: [Learn] [dinosaur] Advanced course Geometric Morphometrics in R,
  15. 2017-03-17 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Fwd: [dinosaur] Advanced course Geometric Morphometrics in
  16. 2017-03-17 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] good news !
  17. 2017-03-18 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] circles
  18. 2017-03-20 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Alice
  19. 2017-03-20 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] hough transform - Lecture 9
  20. 2017-03-21 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Anyone understand this well
  21. 2017-03-21 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Fwd: [dinosaur] Digital mapping of dinosaurian tracksites
  22. 2017-03-22 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] ODBASE 2017 - The 16th International Conference on
  23. 2017-03-24 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Decision Tree
  24. 2017-03-24 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Genetic Modification with decent
  25. 2017-03-27 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] Fwd: Re: hough transform - Lecture 9
  26. 2017-03-27 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] MOOCS
  27. 2017-03-27 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Peter Novig learning and on line teaching
  28. 2017-03-28 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] computations
  29. 2017-03-29 Christopher League <league-at-contrapunctus.net> Re: [Learn] This is hard to understand what the logic is here
  30. 2017-03-29 Ruben Safir <ruben-at-mrbrklyn.com> Re: [Learn] This is hard to understand what the logic is here
  31. 2017-03-29 Christopher League <league-at-contrapunctus.net> Re: [Learn] This is hard to understand what the logic is here
  32. 2017-03-29 Ruben Safir <mrbrklyn-at-panix.com> Re: [Learn] This is hard to understand what the logic is here
  33. 2017-03-29 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] perseptors
  34. 2017-03-29 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] This is hard to understand what the logic is here
  35. 2017-03-29 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] This is hard to understand what the logic is here
  36. 2017-03-30 Ruben Safir <mrbrklyn-at-panix.com> Re: [Learn] c arrays
  37. 2017-03-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] c arrays
  38. 2017-03-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] random weights
  39. 2017-03-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [Learn] randomize with commentary
  40. 2017-03-31 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Computational Paleo

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!