Skip to content

Commit 3cccc4d

Browse files
committed
Add ch13 naive bayes model and data
1 parent 9070fd1 commit 3cccc4d

File tree

2,315 files changed

+278628
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,315 files changed

+278628
-0
lines changed

notebook/ch13_naive_bayes.ipynb

+424
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
From [email protected] Thu Aug 22 12:36:23 2002
2+
Return-Path: <[email protected]>
3+
Delivered-To: [email protected]
4+
Received: from localhost (localhost [127.0.0.1])
5+
by phobos.labs.netnoteinc.com (Postfix) with ESMTP id D03E543C36
6+
for <zzzz@localhost>; Thu, 22 Aug 2002 07:36:16 -0400 (EDT)
7+
Received: from phobos [127.0.0.1]
8+
by localhost with IMAP (fetchmail-5.9.0)
9+
for zzzz@localhost (single-drop); Thu, 22 Aug 2002 12:36:16 +0100 (IST)
10+
Received: from listman.example.com (listman.example.com [66.187.233.211]) by
11+
dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7MBYrZ04811 for
12+
<[email protected]>; Thu, 22 Aug 2002 12:34:53 +0100
13+
Received: from listman.example.com (localhost.localdomain [127.0.0.1]) by
14+
listman.redhat.com (Postfix) with ESMTP id 8386540858; Thu, 22 Aug 2002
15+
07:35:02 -0400 (EDT)
16+
Delivered-To: [email protected]
17+
Received: from int-mx1.corp.example.com (int-mx1.corp.example.com
18+
[172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 10CF8406D7
19+
for <[email protected]>; Thu, 22 Aug 2002 07:34:10 -0400
20+
(EDT)
21+
Received: (from mail@localhost) by int-mx1.corp.example.com (8.11.6/8.11.6)
22+
id g7MBY7g11259 for [email protected]; Thu, 22 Aug 2002
23+
07:34:07 -0400
24+
Received: from mx1.example.com (mx1.example.com [172.16.48.31]) by
25+
int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g7MBY7Y11255 for
26+
<[email protected]>; Thu, 22 Aug 2002 07:34:07 -0400
27+
Received: from ratree.psu.ac.th ([202.28.97.6]) by mx1.example.com
28+
(8.11.6/8.11.6) with SMTP id g7MBIhl25223 for <[email protected]>;
29+
Thu, 22 Aug 2002 07:18:55 -0400
30+
Received: from delta.cs.mu.OZ.AU (delta.coe.psu.ac.th [172.30.0.98]) by
31+
ratree.psu.ac.th (8.11.6/8.11.6) with ESMTP id g7MBWel29762;
32+
Thu, 22 Aug 2002 18:32:40 +0700 (ICT)
33+
Received: from munnari.OZ.AU (localhost [127.0.0.1]) by delta.cs.mu.OZ.AU
34+
(8.11.6/8.11.6) with ESMTP id g7MBQPW13260; Thu, 22 Aug 2002 18:26:25
35+
+0700 (ICT)
36+
From: Robert Elz <[email protected]>
37+
To: Chris Garrigues <[email protected]>
38+
39+
Subject: Re: New Sequences Window
40+
In-Reply-To: <[email protected]>
41+
References: <[email protected]>
42+
43+
44+
45+
MIME-Version: 1.0
46+
Content-Type: text/plain; charset=us-ascii
47+
Message-Id: <[email protected]>
48+
49+
50+
51+
X-Beenthere: [email protected]
52+
X-Mailman-Version: 2.0.1
53+
Precedence: bulk
54+
List-Help: <mailto:[email protected]?subject=help>
55+
List-Post: <mailto:[email protected]>
56+
List-Subscribe: <https://listman.example.com/mailman/listinfo/exmh-workers>,
57+
<mailto:[email protected]?subject=subscribe>
58+
List-Id: Discussion list for EXMH developers <exmh-workers.example.com>
59+
List-Unsubscribe: <https://listman.example.com/mailman/listinfo/exmh-workers>,
60+
<mailto:[email protected]?subject=unsubscribe>
61+
List-Archive: <https://listman.example.com/mailman/private/exmh-workers/>
62+
Date: Thu, 22 Aug 2002 18:26:25 +0700
63+
64+
Date: Wed, 21 Aug 2002 10:54:46 -0500
65+
From: Chris Garrigues <[email protected]>
66+
Message-ID: <[email protected]>
67+
68+
69+
| I can't reproduce this error.
70+
71+
For me it is very repeatable... (like every time, without fail).
72+
73+
This is the debug log of the pick happening ...
74+
75+
18:19:03 Pick_It {exec pick +inbox -list -lbrace -lbrace -subject ftp -rbrace -rbrace} {4852-4852 -sequence mercury}
76+
18:19:03 exec pick +inbox -list -lbrace -lbrace -subject ftp -rbrace -rbrace 4852-4852 -sequence mercury
77+
18:19:04 Ftoc_PickMsgs {{1 hit}}
78+
18:19:04 Marking 1 hits
79+
18:19:04 tkerror: syntax error in expression "int ...
80+
81+
Note, if I run the pick command by hand ...
82+
83+
delta$ pick +inbox -list -lbrace -lbrace -subject ftp -rbrace -rbrace 4852-4852 -sequence mercury
84+
1 hit
85+
86+
That's where the "1 hit" comes from (obviously). The version of nmh I'm
87+
using is ...
88+
89+
delta$ pick -version
90+
pick -- nmh-1.0.4 [compiled on fuchsia.cs.mu.OZ.AU at Sun Mar 17 14:55:56 ICT 2002]
91+
92+
And the relevant part of my .mh_profile ...
93+
94+
delta$ mhparam pick
95+
-seq sel -list
96+
97+
98+
Since the pick command works, the sequence (actually, both of them, the
99+
one that's explicit on the command line, from the search popup, and the
100+
one that comes from .mh_profile) do get created.
101+
102+
kre
103+
104+
ps: this is still using the version of the code form a day ago, I haven't
105+
been able to reach the cvs repository today (local routing issue I think).
106+
107+
108+
109+
_______________________________________________
110+
Exmh-workers mailing list
111+
112+
https://listman.redhat.com/mailman/listinfo/exmh-workers
113+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
From [email protected] Thu Aug 22 13:52:59 2002
2+
Return-Path: <[email protected]>
3+
Delivered-To: [email protected]
4+
Received: from localhost (localhost [127.0.0.1])
5+
by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 0314547C66
6+
for <zzzz@localhost>; Thu, 22 Aug 2002 08:52:58 -0400 (EDT)
7+
Received: from phobos [127.0.0.1]
8+
by localhost with IMAP (fetchmail-5.9.0)
9+
for zzzz@localhost (single-drop); Thu, 22 Aug 2002 13:52:59 +0100 (IST)
10+
Received: from n16.grp.scd.yahoo.com (n16.grp.scd.yahoo.com
11+
[66.218.66.71]) by dogma.slashnull.org (8.11.6/8.11.6) with SMTP id
12+
g7MCrdZ07070 for <[email protected]>; Thu, 22 Aug 2002 13:53:39 +0100
13+
X-Egroups-Return: sentto-2242572-52733-1030020820-zzzz=example.com@returns.groups.yahoo.com
14+
Received: from [66.218.67.198] by n16.grp.scd.yahoo.com with NNFMP;
15+
22 Aug 2002 12:53:40 -0000
16+
17+
X-Apparently-To: [email protected]
18+
Received: (EGP: mail-8_1_0_1); 22 Aug 2002 12:53:39 -0000
19+
Received: (qmail 76099 invoked from network); 22 Aug 2002 12:53:39 -0000
20+
Received: from unknown (66.218.66.218) by m5.grp.scd.yahoo.com with QMQP;
21+
22 Aug 2002 12:53:39 -0000
22+
Received: from unknown (HELO rhenium.btinternet.com) (194.73.73.93) by
23+
mta3.grp.scd.yahoo.com with SMTP; 22 Aug 2002 12:53:39 -0000
24+
Received: from host217-36-23-185.in-addr.btopenworld.com ([217.36.23.185])
25+
by rhenium.btinternet.com with esmtp (Exim 3.22 #8) id 17hrT0-0004gj-00
26+
for [email protected]; Thu, 22 Aug 2002 13:53:38 +0100
27+
X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410)
28+
To: zzzzteana <[email protected]>
29+
X-Priority: 3
30+
Message-Id: <[email protected]>
31+
From: "Tim Chapman" <[email protected]>
32+
X-Yahoo-Profile: tim2ubh
33+
MIME-Version: 1.0
34+
Mailing-List: list [email protected]; contact
35+
36+
Delivered-To: mailing list [email protected]
37+
Precedence: bulk
38+
List-Unsubscribe: <mailto:[email protected]>
39+
Date: Thu, 22 Aug 2002 13:52:38 +0100
40+
Subject: [zzzzteana] Moscow bomber
41+
42+
Content-Type: text/plain; charset=US-ASCII
43+
Content-Transfer-Encoding: 7bit
44+
45+
Man Threatens Explosion In Moscow
46+
47+
Thursday August 22, 2002 1:40 PM
48+
MOSCOW (AP) - Security officers on Thursday seized an unidentified man who
49+
said he was armed with explosives and threatened to blow up his truck in
50+
front of Russia's Federal Security Services headquarters in Moscow, NTV
51+
television reported.
52+
The officers seized an automatic rifle the man was carrying, then the man
53+
got out of the truck and was taken into custody, NTV said. No other details
54+
were immediately available.
55+
The man had demanded talks with high government officials, the Interfax and
56+
ITAR-Tass news agencies said. Ekho Moskvy radio reported that he wanted to
57+
talk with Russian President Vladimir Putin.
58+
Police and security forces rushed to the Security Service building, within
59+
blocks of the Kremlin, Red Square and the Bolshoi Ballet, and surrounded the
60+
man, who claimed to have one and a half tons of explosives, the news
61+
agencies said. Negotiations continued for about one and a half hours outside
62+
the building, ITAR-Tass and Interfax reported, citing witnesses.
63+
The man later drove away from the building, under police escort, and drove
64+
to a street near Moscow's Olympic Penta Hotel, where authorities held
65+
further negotiations with him, the Moscow police press service said. The
66+
move appeared to be an attempt by security services to get him to a more
67+
secure location.
68+
69+
------------------------ Yahoo! Groups Sponsor ---------------------~-->
70+
4 DVDs Free +s&p Join Now
71+
http://us.click.yahoo.com/pt6YBB/NXiEAA/mG3HAA/7gSolB/TM
72+
---------------------------------------------------------------------~->
73+
74+
To unsubscribe from this group, send an email to:
75+
76+
77+
78+
79+
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
80+
81+
82+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
From [email protected] Thu Aug 22 14:44:26 2002
2+
Return-Path: <[email protected]>
3+
Delivered-To: [email protected]
4+
Received: from localhost (localhost [127.0.0.1])
5+
by phobos.labs.netnoteinc.com (Postfix) with ESMTP id EC69D47C66
6+
for <zzzz@localhost>; Thu, 22 Aug 2002 09:44:25 -0400 (EDT)
7+
Received: from phobos [127.0.0.1]
8+
by localhost with IMAP (fetchmail-5.9.0)
9+
for zzzz@localhost (single-drop); Thu, 22 Aug 2002 14:44:25 +0100 (IST)
10+
Received: from n6.grp.scd.yahoo.com (n6.grp.scd.yahoo.com [66.218.66.90])
11+
by dogma.slashnull.org (8.11.6/8.11.6) with SMTP id g7MDcOZ08504 for
12+
<[email protected]>; Thu, 22 Aug 2002 14:38:25 +0100
13+
X-Egroups-Return: sentto-2242572-52736-1030023506-zzzz=example.com@returns.groups.yahoo.com
14+
Received: from [66.218.67.192] by n6.grp.scd.yahoo.com with NNFMP;
15+
22 Aug 2002 13:38:26 -0000
16+
17+
X-Apparently-To: [email protected]
18+
Received: (EGP: mail-8_1_0_1); 22 Aug 2002 13:38:25 -0000
19+
Received: (qmail 48882 invoked from network); 22 Aug 2002 13:38:25 -0000
20+
Received: from unknown (66.218.66.218) by m10.grp.scd.yahoo.com with QMQP;
21+
22 Aug 2002 13:38:25 -0000
22+
Received: from unknown (HELO postbox.ee.ed.ac.uk) (129.215.80.253) by
23+
mta3.grp.scd.yahoo.com with SMTP; 22 Aug 2002 13:38:24 -0000
24+
Received: from ee.ed.ac.uk (sxs@dunblane [129.215.34.86]) by
25+
postbox.ee.ed.ac.uk (8.11.0/8.11.0) with ESMTP id g7MDcNi28645 for
26+
<[email protected]>; Thu, 22 Aug 2002 14:38:23 +0100 (BST)
27+
Message-Id: <[email protected]>
28+
Organization: Scottish Microelectronics Centre
29+
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1b) Gecko/20020628
30+
X-Accept-Language: en, en-us
31+
32+
References: <3D64F325.11319.61EA648@localhost>
33+
From: Stewart Smith <[email protected]>
34+
X-Yahoo-Profile: stochasticus
35+
MIME-Version: 1.0
36+
Mailing-List: list [email protected]; contact
37+
38+
Delivered-To: mailing list [email protected]
39+
Precedence: bulk
40+
List-Unsubscribe: <mailto:[email protected]>
41+
Date: Thu, 22 Aug 2002 14:38:22 +0100
42+
Subject: Re: [zzzzteana] Nothing like mama used to make
43+
44+
Content-Type: text/plain; charset=US-ASCII
45+
Content-Transfer-Encoding: 7bit
46+
47+
> in adding cream to spaghetti carbonara, which has the same effect on pasta as
48+
> making a pizza a deep-pie;
49+
50+
I just had to jump in here as Carbonara is one of my favourites to make and ask
51+
what the hell are you supposed to use instead of cream? I've never seen a
52+
recipe that hasn't used this. Personally I use low fat creme fraiche because it
53+
works quite nicely but the only time I've seen an supposedly authentic recipe
54+
for carbonara it was identical to mine (cream, eggs and lots of fresh parmesan)
55+
except for the creme fraiche.
56+
57+
Stew
58+
--
59+
Stewart Smith
60+
Scottish Microelectronics Centre, University of Edinburgh.
61+
http://www.ee.ed.ac.uk/~sxs/
62+
63+
64+
------------------------ Yahoo! Groups Sponsor ---------------------~-->
65+
4 DVDs Free +s&p Join Now
66+
http://us.click.yahoo.com/pt6YBB/NXiEAA/mG3HAA/7gSolB/TM
67+
---------------------------------------------------------------------~->
68+
69+
To unsubscribe from this group, send an email to:
70+
71+
72+
73+
74+
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
75+
76+
77+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
From [email protected] Thu Aug 22 14:54:39 2002
2+
Return-Path: <[email protected]>
3+
Delivered-To: [email protected]
4+
Received: from localhost (localhost [127.0.0.1])
5+
by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 16FC743F99
6+
for <zzzz@localhost>; Thu, 22 Aug 2002 09:54:38 -0400 (EDT)
7+
Received: from phobos [127.0.0.1]
8+
by localhost with IMAP (fetchmail-5.9.0)
9+
for zzzz@localhost (single-drop); Thu, 22 Aug 2002 14:54:39 +0100 (IST)
10+
Received: from n14.grp.scd.yahoo.com (n14.grp.scd.yahoo.com
11+
[66.218.66.69]) by dogma.slashnull.org (8.11.6/8.11.6) with SMTP id
12+
g7MDoxZ08960 for <[email protected]>; Thu, 22 Aug 2002 14:50:59 +0100
13+
X-Egroups-Return: sentto-2242572-52737-1030024261-zzzz=example.com@returns.groups.yahoo.com
14+
Received: from [66.218.66.95] by n14.grp.scd.yahoo.com with NNFMP;
15+
22 Aug 2002 13:51:01 -0000
16+
17+
X-Apparently-To: [email protected]
18+
Received: (EGP: mail-8_1_0_1); 22 Aug 2002 13:51:00 -0000
19+
Received: (qmail 71894 invoked from network); 22 Aug 2002 13:51:00 -0000
20+
Received: from unknown (66.218.66.218) by m7.grp.scd.yahoo.com with QMQP;
21+
22 Aug 2002 13:51:00 -0000
22+
Received: from unknown (HELO haymarket.ed.ac.uk) (129.215.128.53) by
23+
mta3.grp.scd.yahoo.com with SMTP; 22 Aug 2002 13:51:00 -0000
24+
Received: from srv0.ems.ed.ac.uk (srv0.ems.ed.ac.uk [129.215.117.0]) by
25+
haymarket.ed.ac.uk (8.11.6/8.11.6) with ESMTP id g7MDow310334 for
26+
<[email protected]>; Thu, 22 Aug 2002 14:50:59 +0100 (BST)
27+
Received: from EMS-SRV0/SpoolDir by srv0.ems.ed.ac.uk (Mercury 1.44);
28+
22 Aug 02 14:50:58 +0000
29+
Received: from SpoolDir by EMS-SRV0 (Mercury 1.44); 22 Aug 02 14:50:31 +0000
30+
Organization: Management School
31+
32+
Message-Id: <3D64FA3C.13325.63A5960@localhost>
33+
Priority: normal
34+
In-Reply-To: <[email protected]>
35+
X-Mailer: Pegasus Mail for Windows (v4.01)
36+
Content-Description: Mail message body
37+
From: "Martin Adamson" <[email protected]>
38+
MIME-Version: 1.0
39+
Mailing-List: list [email protected]; contact
40+
41+
Delivered-To: mailing list [email protected]
42+
Precedence: bulk
43+
List-Unsubscribe: <mailto:[email protected]>
44+
Date: Thu, 22 Aug 2002 14:50:31 +0100
45+
Subject: Re: [zzzzteana] Nothing like mama used to make
46+
47+
Content-Type: text/plain; charset=US-ASCII
48+
Content-Transfer-Encoding: 7bit
49+
50+
51+
> I just had to jump in here as Carbonara is one of my favourites to make and
52+
> ask
53+
> what the hell are you supposed to use instead of cream?
54+
55+
Isn't it just basically a mixture of beaten egg and bacon (or pancetta,
56+
really)? You mix in the raw egg to the cooked pasta and the heat of the pasta
57+
cooks the egg. That's my understanding.
58+
59+
Martin
60+
61+
------------------------ Yahoo! Groups Sponsor ---------------------~-->
62+
4 DVDs Free +s&p Join Now
63+
http://us.click.yahoo.com/pt6YBB/NXiEAA/mG3HAA/7gSolB/TM
64+
---------------------------------------------------------------------~->
65+
66+
To unsubscribe from this group, send an email to:
67+
68+
69+
70+
71+
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
72+
73+
74+

0 commit comments

Comments
 (0)