Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-luc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luc Giffon
scikit-luc
Commits
3c1ffee8
Commit
3c1ffee8
authored
7 years ago
by
Luc Giffon
Browse files
Options
Downloads
Patches
Plain Diff
remove of the matplotlib import
parent
ba51cbdd
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+2
-2
2 additions, 2 deletions
setup.py
skluc/__init__.py
+1
-1
1 addition, 1 deletion
skluc/__init__.py
skluc/mldatasets.py
+1
-4
1 addition, 4 deletions
skluc/mldatasets.py
with
4 additions
and
7 deletions
setup.py
+
2
−
2
View file @
3c1ffee8
...
@@ -16,9 +16,9 @@ setup(
...
@@ -16,9 +16,9 @@ setup(
name
=
'
scikit-luc
'
,
name
=
'
scikit-luc
'
,
# You can specify all the packages manually or use the find_package
# You can specify all the packages manually or use the find_package
# function
# function
#
packages=find_packages(exclude=['doc', 'examples']),
packages
=
find_packages
(
exclude
=
[
'
doc
'
,
'
examples
'
]),
# See PEP440 for defining a proper version number
# See PEP440 for defining a proper version number
version
=
'
1.
02
'
,
version
=
'
1.
6
'
,
# Small description of the package
# Small description of the package
description
=
'
Science-Kit developed by Luc Giffon for Luc Giffon during his PhD thesis.
'
,
description
=
'
Science-Kit developed by Luc Giffon for Luc Giffon during his PhD thesis.
'
,
# Long description
# Long description
...
...
This diff is collapsed.
Click to expand it.
skluc/__init__.py
+
1
−
1
View file @
3c1ffee8
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
This package contains some usefull functions for the PhD of Luc Giffon.
This package contains some usefull functions for the PhD of Luc Giffon.
"""
"""
__version__
=
"
1.02
"
__version__
=
"
1.6
"
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
skluc/mldatasets.py
+
1
−
4
View file @
3c1ffee8
...
@@ -13,7 +13,6 @@ import logging
...
@@ -13,7 +13,6 @@ import logging
import
tarfile
import
tarfile
import
pickle
import
pickle
# --- installed packages
# --- installed packages
import
matplotlib.pyplot
as
plt
import
daiquiri
import
daiquiri
import
numpy
as
np
import
numpy
as
np
...
@@ -97,8 +96,6 @@ class Dataset:
...
@@ -97,8 +96,6 @@ class Dataset:
:return: None
:return: None
"""
"""
# the download method shouldn't be called if the target directory tree doesn't exist.
assert
os
.
path
.
exists
(
self
.
s_download_dir
)
self
.
create_directory_tree
()
self
.
create_directory_tree
()
if
not
check_files
(
self
.
l_filepaths
):
if
not
check_files
(
self
.
l_filepaths
):
logger
.
info
(
"
Files need to be downloaded
"
)
logger
.
info
(
"
Files need to be downloaded
"
)
...
@@ -166,7 +163,7 @@ class MnistDataset(Dataset):
...
@@ -166,7 +163,7 @@ class MnistDataset(Dataset):
with
gzip
.
open
(
fname_img
,
'
rb
'
)
as
fimg
:
with
gzip
.
open
(
fname_img
,
'
rb
'
)
as
fimg
:
magic
,
num
,
rows
,
cols
=
struct
.
unpack
(
"
>IIII
"
,
fimg
.
read
(
16
))
magic
,
num
,
rows
,
cols
=
struct
.
unpack
(
"
>IIII
"
,
fimg
.
read
(
16
))
img
=
np
.
fromstring
(
fimg
.
read
(),
dtype
=
np
.
uint8
)
img
=
np
.
fromstring
(
fimg
.
read
(),
dtype
=
np
.
uint8
)
img
=
img
.
reshape
(
len
(
lbl
),
rows
,
cols
)
img
=
img
.
reshape
(
len
(
lbl
),
-
1
)
return
img
,
lbl
return
img
,
lbl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment