Skip to content

Commit db20877

Browse files
authored
Updates for Julia 0.5 (#31)
1 parent 8a9e13e commit db20877

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.3
76
- 0.4
87
- 0.5
98
- nightly
@@ -13,3 +12,5 @@ notifications:
1312
# script:
1413
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
1514
# - julia -e 'Pkg.clone(pwd()); Pkg.build("MLBase"); Pkg.test("MLBase")'
15+
after_success:
16+
- julia -e 'cd(Pkg.dir("MLBase")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# MLBase.jl
22

3-
Swiss knife for machine learning.
3+
Swiss knife for machine learning.
44

55
[![Build Status](https://travis-ci.org/JuliaStats/MLBase.jl.svg?branch=master)](https://travis-ci.org/JuliaStats/MLBase.jl)
6-
[![MLBase](http://pkg.julialang.org/badges/MLBase_0.3.svg)](http://pkg.julialang.org/?pkg=MLBase&ver=0.3)
7-
[![MLBase](http://pkg.julialang.org/badges/MLBase_0.4.svg)](http://pkg.julialang.org/?pkg=MLBase&ver=0.4)
6+
[![MLBase](http://pkg.julialang.org/badges/MLBase_0.4.svg)](http://pkg.julialang.org/?pkg=MLBase)
7+
[![MLBase](http://pkg.julialang.org/badges/MLBase_0.5.svg)](http://pkg.julialang.org/?pkg=MLBase)
8+
[![Coveralls](https://coveralls.io/repos/github/JuliaStats/MLBase.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaStats/MLBase.jl?branch=master)
89

910
This package does not implement specific machine learning algorithms. Instead, it provides a collection of useful tools to support machine learning programs, including:
1011

@@ -14,7 +15,7 @@ This package does not implement specific machine learning algorithms. Instead, i
1415
- Cross validation
1516
- Model tuning (*i.e.* search best settings of parameters)
1617

17-
**Notes:** This package depends on [StatsBase](https://github.com/JuliaStats/StatsBase.jl) and reexports all names therefrom. It also depends on [ArrayViews](https://github.com/lindahua/ArrayViews.jl) and reexports the ``view`` function.
18+
**Notes:** This package depends on [StatsBase](https://github.com/JuliaStats/StatsBase.jl) and reexports all names therefrom.
1819

1920
### Resources
2021

REQUIRE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
julia 0.3
1+
julia 0.4
22
Reexport
3-
ArrayViews 0.4.8-
43
StatsBase 0.6.9-
54
Iterators
6-
Compat
5+
Compat 0.8.7

src/MLBase.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module MLBase
22

33
using Reexport
4-
using ArrayViews
54
using Iterators
65
using Compat
6+
using Compat: view
77
@reexport using StatsBase
88

99
import Base: length, show, keys, precision, length, getindex
@@ -17,10 +17,10 @@ module MLBase
1717
Forward, Reverse,
1818

1919
# utils
20-
repeach, # repeat each element in a vector
20+
repeach, # repeat each element in a vector
2121
repeachcol, # repeat each column in a matrix
2222
repeachrow, # repeat each row in a matrix
23-
23+
2424
# classification
2525
LabelMap, # a type to represent a label map
2626

@@ -54,11 +54,11 @@ module MLBase
5454
hitrate, # compute hit-rate of ranked lists at a specific rank
5555
hitrates, # compute hit-rate of ranked lists at multiple ranks
5656
roc, # compute roc numbers from predictions
57-
true_positive, # number of true positives
58-
true_negative, # number of true negatives
57+
true_positive, # number of true positives
58+
true_negative, # number of true negatives
5959
false_positive, # number of false positives
6060
false_negative, # number of false negatives
61-
true_positive_rate, # rate of true positives
61+
true_positive_rate, # rate of true positives
6262
true_negative_rate, # rate of true negatives
6363
false_positive_rate, # rate of false positives
6464
false_negative_rate, # rate of false negatives
@@ -76,7 +76,7 @@ module MLBase
7676
include("crossval.jl")
7777
include("perfeval.jl")
7878
include("modeltune.jl")
79-
79+
8080
include("deprecates.jl")
8181
end
8282

0 commit comments

Comments
 (0)