Skip to content

Commit a519ede

Browse files
committed
update CI and README
1 parent 9021490 commit a519ede

File tree

2 files changed

+50
-26
lines changed

2 files changed

+50
-26
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@ addons:
2020
packages:
2121
- hdf5-tools
2222

23-
install:
24-
#- sudo pip install pymdown-extensions
23+
jobs:
24+
include:
25+
- stage: deploy
26+
julia: 0.7
27+
os: linux
28+
script:
29+
- julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("MLDatasets")'
30+
- julia -e 'import Pkg; Pkg.add("Documenter")'
31+
- julia -e 'import MLDatasets; ENV["DOCUMENTER_DEBUG"] = "true"; include(joinpath("docs","make.jl"))'
2532

26-
# uncomment the following lines to override the default test script
27-
#script:
28-
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
29-
# - julia --check-bounds=yes -e 'using Pkg; Pkg.add(pwd()); Pkg.build("MLDatasets"); Pkg.test("MLDatasets"; coverage=true)'
33+
## uncomment the following lines to override the default test script
34+
script:
35+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
36+
- julia --check-bounds=yes --color=yes -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("MLDatasets"); Pkg.test("MLDatasets"; coverage=true)';
3037

3138
after_success:
32-
- julia -e 'using Pkg, MLDatasets; cd(joinpath(dirname(pathof(MLDatasets)), "..")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
33-
- julia -e 'using Pkg, MLDatasets; Pkg.add("Documenter"); cd(joinpath(dirname(pathof(MLDatasets)), "..")); include(joinpath("docs", "make.jl"))'
39+
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'

README.md

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# MLDatasets.jl
22

3-
[![Julia 0.6 Status](http://pkg.julialang.org/badges/MLDatasets_0.6.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.6)
4-
[![Julia 0.7 Status](http://pkg.julialang.org/badges/MLDatasets_0.7.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.7)
5-
[![Julia 1.0 Status](http://pkg.julialang.org/badges/MLDatasets_1.0.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=1.0)
6-
7-
[![Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaML.github.io/MLDatasets.jl/stable)
8-
[![Build Status](https://travis-ci.org/JuliaML/MLDatasets.jl.svg?branch=master)](https://travis-ci.org/JuliaML/MLDatasets.jl)
9-
10-
This package represents a community effort to provide a common
3+
_This package represents a community effort to provide a common
114
interface for accessing common Machine Learning (ML) datasets. In
125
contrast to other data-related Julia packages, the focus of
136
`MLDatasets.jl` is specifically on downloading, unpacking, and
147
accessing benchmark dataset. Functionality for the purpose of
158
data processing or visualization is only provided to a degree
16-
that is special to some dataset.
9+
that is special to some dataset._
10+
11+
| **Package Status** | **Package Evaluator** | **Build Status** |
12+
|:------------------:|:---------------------:|:-----------------:|
13+
| [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md) [![Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaML.github.io/MLDatasets.jl/stable) | [![Julia 0.6 Status](http://pkg.julialang.org/badges/MLDatasets_0.6.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.6) [![Julia 0.7 Status](http://pkg.julialang.org/badges/MLDatasets_0.7.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=0.7) [![Julia 1.0 Status](http://pkg.julialang.org/badges/MLDatasets_1.0.svg)](http://pkg.julialang.org/?pkg=MLDatasets&ver=1.0) | [![Build Status](https://travis-ci.org/JuliaML/MLDatasets.jl.svg?branch=master)](https://travis-ci.org/JuliaML/MLDatasets.jl) [![Coverage Status](https://coveralls.io/repos/github/JuliaML/MLDatasets.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaML/MLDatasets.jl?branch=master) |
14+
1715

1816
This package is a part of the
1917
[`JuliaML`](https://github.com/JuliaML) ecosystem. Its
2018
functionality is build on top of the package
2119
[`DataDeps.jl`](https://github.com/oxinabox/DataDeps.jl).
2220

23-
## Basic Usage
21+
## Introduction
2422

2523
The way `MLDatasets.jl` is organized is that each dataset has its
2624
own dedicated sub-module. Where possible, those sub-module share
@@ -122,24 +120,44 @@ testdata = UD_English.devdata()
122120
| **PTBLM** | 42068 | 42068 | 3761 | 3761 |
123121
| **UD_English** | 12543 | - | 2077 | - |
124122

123+
## Documentation
124+
125+
Check out the **[latest
126+
documentation](https://JuliaML.github.io/MLDatasets.jl/stable)**
127+
128+
Additionally, you can make use of Julia's native docsystem.
129+
The following example shows how to get additional information
130+
on `MNIST.convert2image` within Julia's REPL:
131+
132+
```julia
133+
?MNIST.convert2image
134+
```
135+
```
136+
convert2image(array) -> Array{Gray}
137+
138+
Convert the given MNIST horizontal-major tensor (or feature matrix) to a vertical-major Colorant array. The values are also color corrected according to
139+
the website's description, which means that the digits are black on a white background.
140+
141+
julia> MNIST.convert2image(MNIST.traintensor()) # full training dataset
142+
28×28×60000 Array{Gray{N0f8},3}:
143+
[...]
144+
145+
julia> MNIST.convert2image(MNIST.traintensor(1)) # first training image
146+
28×28 Array{Gray{N0f8},2}:
147+
[...]
148+
```
149+
125150
## Installation
126151

127152
To install `MLDatasets.jl`, start up Julia and type the following
128153
code snippet into the REPL. It makes use of the native Julia
129154
package manger.
130155

131156
```julia
157+
import Pkg
132158
Pkg.add("MLDatasets")
133159
```
134160

135-
Additionally, for example if you encounter any sudden issues, or
136-
in the case you would like to contribute to the package, you can
137-
manually choose to be on the latest (untagged) version.
138-
139-
```julia
140-
Pkg.checkout("MLDatasets")
141-
```
142-
143161
## License
144162

145163
This code is free to use under the terms of the MIT license.

0 commit comments

Comments
 (0)