Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
musicinformationretrieval-com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
A.S.
musicinformationretrieval-com
Commits
3bd7f57b
Commit
3bd7f57b
authored
Jun 23, 2014
by
Leigh Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to PEP8 style
parent
ecf31cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
crossValidationTemplate.py
sources/crossValidationTemplate.py
+1
-1
No files found.
sources/crossValidationTemplate.py
View file @
3bd7f57b
...
@@ -88,7 +88,7 @@ def crossValidateKNN(features, labels):
...
@@ -88,7 +88,7 @@ def crossValidateKNN(features, labels):
print
(
'cross validation accuracy:
%
f'
%
(
1.0
-
errors
.
mean
()))
print
(
'cross validation accuracy:
%
f'
%
(
1.0
-
errors
.
mean
()))
def
process
C
orpus
(
corpusURL
):
def
process
_c
orpus
(
corpusURL
):
"""Read a list of files to process from the text file at corpusURL. Return a list of URLs"""
"""Read a list of files to process from the text file at corpusURL. Return a list of URLs"""
# Open and read each line
# Open and read each line
urlListTextData
=
urllib2
.
urlopen
(
corpusURL
)
# it's a file like object and works just like a file
urlListTextData
=
urllib2
.
urlopen
(
corpusURL
)
# it's a file like object and works just like a file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment