Re: [Tutor] Is it possible to archive subsets of data from an SQLite db and restore it later?

2015-08-17 Thread Ben Finney
boB Stepp writes: > My wife had an interesting request tonight: Would it be possible to > have two dbs, one that is the current working db, and the other an > archival db for students who have left the school? (Note that this isn't anything to do with Python per se, and would be better discussed

Re: [Tutor] Is it possible to archive subsets of data from an SQLite db and restore it later?

2015-08-17 Thread Zachary Ware
On Mon, Aug 17, 2015 at 10:44 PM, boB Stepp wrote: > My wife had an interesting request tonight: Would it be possible to > have two dbs, one that is the current working db, and the other an > archival db for students who have left the school? If yes, then the > archival db would need to be able

[Tutor] Is it possible to archive subsets of data from an SQLite db and restore it later?

2015-08-17 Thread boB Stepp
My wife had an interesting request tonight: Would it be possible to have two dbs, one that is the current working db, and the other an archival db for students who have left the school? If yes, then the archival db would need to be able to serve two functions: 1) If the teacher gets a request fo

Re: [Tutor] AttributeError,

2015-08-17 Thread Steven D'Aprano
Has anyone else answered this question? I haven't seen a response, but perhaps I missed it. More comments below. On Tue, Aug 11, 2015 at 09:53:03PM -0700, Ltc Hotspot wrote: > Hi Steven, > > Message heard loud and clear: > > Question: What sorted function should I write to produce the desired

Re: [Tutor] gensim to generate document vectors

2015-08-17 Thread Danny Yoo
Followup: If we want to get at the document vectors after training, I think that, from reading the code here: https://github.com/piskvorky/gensim/blob/develop/gensim/models/doc2vec.py#L254 that you want to get at the model's 'docvecs' attribute. We know it's a DocvecArray because it is as

Re: [Tutor] gensim to generate document vectors

2015-08-17 Thread Danny Yoo
>> I'm getting the vocab fine with my code but I can't seem to figure out how >> to print out the individual sentence vectors, I have looked through the >> documentation and haven't found much help. Here is what my code looks like >> so far. It appears that you're asking this question on Stack Ove

Re: [Tutor] gensim to generate document vectors

2015-08-17 Thread Alan Gauld
On 17/08/15 18:50, Joshua Valdez wrote: Okay, so I'm trying to use Doc2Vec to simply read in a a file that is a list of sentences like this: This list us for folks learning the core Pyhton lanmguage and the standard library. Doc2Vec is not part of that library so you might find you get more r

[Tutor] gensim to generate document vectors

2015-08-17 Thread Joshua Valdez
Okay, so I'm trying to use Doc2Vec to simply read in a a file that is a list of sentences like this: # The elephant flaps its large ears to cool the blood in them and its body. A house is a permanent building or structure for people or families to live in. # What I want to do is generate t

Re: [Tutor] Writing back to same CSV in the next column

2015-08-17 Thread Alan Gauld
On 17/08/15 02:51, Nym City via Tutor wrote: > the output of the gethostbyaddr module includes three item (hostname, aliaslist, ipaddrlist). However, in my output I just what the hostname field. So I created a list but I am not able to pull out just the [0] item from this > and instead I get the

Re: [Tutor] Writing back to same CSV in the next column

2015-08-17 Thread Nym City via Tutor
Hi, Thank you for your response. I fixed the parenthesis and it worked. I made little modification below. By default the output of the gethostbyaddr module includes three item (hostname, aliaslist, ipaddrlist). However, in my output I just what the hostname field. So I created a list but I am no