On Tuesday, June 27, 2017 at 7:28:58 PM UTC-7, Steve D'Aprano wrote:
> On Wed, 28 Jun 2017 06:22 am, Marko Rauhamaa wrote:
>
> > You saw the APL example, right? APL's standard runtime/library contains
> > most of Numpy functionality because that's what APL has been designed
> > for.
> >
> > Is th
On Tuesday, June 27, 2017 at 12:34:46 PM UTC-7, Marko Rauhamaa wrote:
> John Ladasky :
> > OK, that's cheating a bit, using Numpy. It's a nice little program,
> > but it leverages a huge, powerful library.
>
> What would *not* be cheating? A language without a library would be
> dead.
Python's st
On Tuesday, June 27, 2017 at 12:31:49 PM UTC-7, John Ladasky wrote:
> On Tuesday, June 27, 2017 at 9:24:07 AM UTC-7, Sam Chats wrote:
> > https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
>
> OK, that
Steve D'Aprano wrote:
It should be obvious that if you allow the use of external
libraries that can contain arbitrary amounts of code, *without* counting that
external code towards your measure of code complexity, you get a bogus
measurement of code complexity.
Numpy isn't really doing a lot he
On Wednesday, June 28, 2017 at 1:04:46 AM UTC+5:30, Marko Rauhamaa wrote:
> John Ladasky
> > OK, that's cheating a bit, using Numpy. It's a nice little program,
> > but it leverages a huge, powerful library.
>
> What would *not* be cheating? A language without a library would be
> dead.
One man'
On Wed, Jun 28, 2017 at 12:28 PM, Steve D'Aprano
wrote:
> E.g. comparing Python to AcmeScript, where you write:
>
>
> program myprogram
> begin program
> load library webbrowser
> new string url copied from 'http://www.example.com'
> with webbrowser
> begin
> method = open
> method.call
On Tuesday, June 27, 2017, Steve D'Aprano
wrote:
> On Wed, 28 Jun 2017 02:23 am, Sam Chats wrote:
>
> >
> https://medium.com/technology-invention-and-more/how-to-
> build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
>
>
> The derivative of the s
On Wed, 28 Jun 2017 06:22 am, Marko Rauhamaa wrote:
> You saw the APL example, right? APL's standard runtime/library contains
> most of Numpy functionality because that's what APL has been designed
> for.
>
> Is that cheating?
Of course not. That demonstrates beautifully (or perhaps "unreadably
On Wed, 28 Jun 2017 05:34 am, Marko Rauhamaa wrote:
> John Ladasky :
>> OK, that's cheating a bit, using Numpy. It's a nice little program,
>> but it leverages a huge, powerful library.
>
> What would *not* be cheating? A language without a library would be
> dead.
Its not really nine lines of P
On Wed, 28 Jun 2017 06:19 am, Marko Rauhamaa wrote:
> alister :
>
>> On Tue, 27 Jun 2017 22:34:18 +0300, Marko Rauhamaa wrote:
>>
>>> John Ladasky :
OK, that's cheating a bit, using Numpy. It's a nice little program,
but it leverages a huge, powerful library.
>>>
>>> What would *not* b
On Wed, 28 Jun 2017 02:23 am, Sam Chats wrote:
>
https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
The derivative of the sigmoid curve given is completely wrong.
def __sigmoid(self, x):
return 1 / (1 +
On Wed, Jun 28, 2017 at 6:22 AM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Wed, Jun 28, 2017 at 5:34 AM, Marko Rauhamaa wrote:
>>> What would *not* be cheating? A language without a library would be
>>> dead.
>>
>> Sure, but there are different levels of cheating. Using a
>> general-purpos
Chris Angelico :
> On Wed, Jun 28, 2017 at 5:34 AM, Marko Rauhamaa wrote:
>> What would *not* be cheating? A language without a library would be
>> dead.
>
> Sure, but there are different levels of cheating. Using a
> general-purpose programming language and its standard library isn't
> usually c
alister :
> On Tue, 27 Jun 2017 22:34:18 +0300, Marko Rauhamaa wrote:
>
>> John Ladasky :
>>> OK, that's cheating a bit, using Numpy. It's a nice little program,
>>> but it leverages a huge, powerful library.
>>
>> What would *not* be cheating? A language without a library would be
>> dead.
>
> t
On Wed, Jun 28, 2017 at 5:34 AM, Marko Rauhamaa wrote:
> John Ladasky :
>> OK, that's cheating a bit, using Numpy. It's a nice little program,
>> but it leverages a huge, powerful library.
>
> What would *not* be cheating? A language without a library would be
> dead.
Sure, but there are differen
On Tue, 27 Jun 2017 22:34:18 +0300, Marko Rauhamaa wrote:
> John Ladasky :
>> OK, that's cheating a bit, using Numpy. It's a nice little program,
>> but it leverages a huge, powerful library.
>
> What would *not* be cheating? A language without a library would be
> dead.
>
>
> Marko
true but f
On Tuesday, June 27, 2017 at 9:24:07 AM UTC-7, Sam Chats wrote:
> https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
OK, that's cheating a bit, using Numpy. It's a nice little program, but it
leverages a h
John Ladasky :
> OK, that's cheating a bit, using Numpy. It's a nice little program,
> but it leverages a huge, powerful library.
What would *not* be cheating? A language without a library would be
dead.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
Sam Chats :
> https://medium.com/technology-invention-and-more/how-to-build-a-simpl
> e-neural-network-in-9-lines-of-python-code-cc8f23647ca1
Impressive, but APL's got Python beat. This one-liner implements the
Game of Life:
life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
https://en.wikipedia.o
https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1
--
https://mail.python.org/mailman/listinfo/python-list
20 matches
Mail list logo