On Fri, Dec 28, 2018 at 10:39:53PM -0500, Avi Gross wrote:
> I will answer this question then head off on vacation.
You wrote about 140 or more lines, but didn't come close to answering
the question: how to randomly split data from a dictionary into training
data and reserved data.
--
Steve
I will answer this question then head off on vacation.
I said that "I" have lots of experience dealing with data in dataframes.
Most of it is not in Python, obviously. It works well for some kinds of
data, not others. Let me not diverge from the purpose of the group by saying
a version of it is co
On Fri, Dec 28, 2018 at 03:34:19PM -0500, Avi Gross wrote:
[...]
> You replied to one of my points with this about a way to partition data:
>
> ---
> The obvious solution:
>
> keys = list(mydict.keys())
> random.shuffle(keys)
> index = len(keys)*3//4
> training_data = keys[:index]
> reserved = k
On 28/12/2018 20:34, Avi Gross wrote:
> So before I respond, here is a general statement. I am NOT particularly
> interested in much of what we discuss here from a specific point of view.
> Someone raises a question and I think about it. They want to know of a
> better way to get a random key from
Steve,
I am going to just respond to one part of your message and will snip the
rest. I am not is disagreement with most of what you say and may simply
stress different aspects. I will say that unless I have reason to, I don't
feel a need to test speeds for an academic discussion. Had this been a
On 28/12/2018 17:13, Avi Gross wrote:
> It sounds like the problem is that IDLE is (invisibly) intercepting what I
> type or paste and then passing it on to a slaved interpreter. There likely
> are other side effects and another editor/environment may not have this
> issue. I will try some.
Do no
On 12/28/18 10:13 AM, Avi Gross wrote:
> As one of my programming styles includes lots of hands-on incremental
> analysis of bits and pieces to get them working before combining them, I
> have no time for an idyllic experience.
don't presume to know what environment will actually work for you, b
Steven,
Thanks. You are right. I am no longer going to talk IDLE worship!
When I open up a command window and run what I assumed was the same version
of python, no problems. Should have tried that but frankly that means I am
stuck with having to then do other things differently like reloading an
> On Dec 27, 2018, at 3:32 PM, Avi Gross wrote:
>
> [Mark Lawrence please press DELETE now in case the rest of this message is
> all about you.]
> [[If that is not working, if on Windows, try Control-ALT-DELETE as that will
> really get rid of my message.]]
>
Hi Avi,
Mark doesn’t have a basi
That was nice 😊 I did not know the python-list.
-Original Message-
From: Tutor On Behalf Of
Steven D'Aprano
Sent: Friday, December 28, 2018 5:56 AM
To: tutor@python.org
Subject: Re: [Tutor] dangerous class neighborhood
On Thu, Dec 27, 2018 at 09:48:02PM -0500, Avi Gross wrote:
> Sometim
On 28/12/2018 05:58, Avi Gross wrote:
> This is a serious question. I have tried things and searched and remain
> stumped. It is about python and perhaps just the interpreter.
>
> Copying and pasting multiple lines into the interpreter fails in mysterious
> ways, unless they are a logical single e
11 matches
Mail list logo