Skip to content
Browse files

Update file permission

  • Loading branch information...
1 parent 0a45fcb commit 8712354bded28839f314747113a7e4365d9fe43b @schemacs committed Oct 7, 2012
View
0 advancefilter.py 100644 → 100755
File mode changed.
View
0 akismettest.py 100644 → 100755
File mode changed.
View
0 docclass.py 100644 → 100755
File mode changed.
View
0 dorm.py 100644 → 100755
File mode changed.
View
0 feedfilter.py 100644 → 100755
File mode changed.
View
0 gp.py 100644 → 100755
File mode changed.
View
8 newsfeatures.py 100644 → 100755
@@ -85,6 +85,8 @@ def makematrix(allw, articlew):
from numpy import *
+
+
def showfeatures(w, h, titles, wordvec, out='features.txt'):
outfile = file(out, 'w')
pc, wc = shape(h)
@@ -100,7 +102,7 @@ def showfeatures(w, h, titles, wordvec, out='features.txt'):
n = [s[1] for s in slist[0:6]]
outfile.write(str(n) + '\n')
patternnames.append(n)
-
+
flist = []
for j in range(len(titles)):
flist.append((w[j, i], titles[j]))
@@ -123,7 +125,5 @@ def showarticles(titles, toppatterns, patternnames, out='articles.txt'):
for i in range(3):
outfile.write(str(toppatterns[j][i][0]) + ' ' +
str(patternnames[toppatterns[j][i][1]]) + '\n')
- outfile.write('\n')
+ outfile.write('\n')
outfile.close()
-
-
View
0 nmf.py 100644 → 100755
File mode changed.
View
0 nn.py 100644 → 100755
File mode changed.
View
0 numpredict.py 100644 → 100755
File mode changed.
View
0 optimization.py 100644 → 100755
File mode changed.
View
0 searchengine.py 100644 → 100755
File mode changed.
View
0 socialnetwork.py 100644 → 100755
File mode changed.
View
0 treepredict.py 100644 → 100755
File mode changed.
View
0 zillow.py 100644 → 100755
File mode changed.

0 comments on commit 8712354

Please sign in to comment.
Something went wrong with that request. Please try again.