Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Nov 5, 2019
1 parent 4bcdc85 commit 1104271
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ version = "0.5.2"
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
ComputationalResources = "ed09eef8-17a6-5b46-8889-db040fac31e3"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down Expand Up @@ -43,6 +44,7 @@ julia = "1"

[extras]
DecisionTree = "7806a523-6efd-50cb-b5f6-3fa6f1930dbb"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
LossFunctions = "30fc2ffe-d236-52d8-8643-a9d8f7c094a7"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
MultivariateStats = "6f286f6a-111f-5878-ab1e-185364afe411"
Expand All @@ -52,4 +54,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"

[targets]
test = ["DecisionTree", "LossFunctions", "MLJBase", "MultivariateStats", "NearestNeighbors", "RDatasets", "Test", "UnicodePlots"]
test = ["DecisionTree", "DelimitedFiles", "LossFunctions", "MLJBase", "MultivariateStats", "NearestNeighbors", "RDatasets", "Test", "UnicodePlots"]
2 changes: 1 addition & 1 deletion src/MLJ.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ using CategoricalArrays
import Distributions
import Distributions: pdf, mode
import Statistics, StatsBase, LinearAlgebra, Random
import Random.AbstractRNG
import Random: AbstractRNG, MersenneTwister

using ProgressMeter

Expand Down
3 changes: 1 addition & 2 deletions test/scitypes.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module TestScitypes

# using Revise
using MLJ
import MLJBase
using Test
Expand All @@ -11,7 +10,7 @@ U = scitype(FeatureSelector())
@test U().input_scitype == MLJ.Table(Scientific)

M = scitype(rms)
@test M().prediction_type == :deterministic
@test_broken M().prediction_type == :deterministic

for handle in localmodels()
name = Symbol(handle.name)
Expand Down
1 change: 1 addition & 0 deletions test/tasks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module TestTasks
using Test
using MLJ
using Random
using Random: MersenneTwister

X=(x=10:10:44, y=1:4, z=collect("abcd"))
task = SupervisedTask(data=X, target=:y, is_probabilistic=true)
Expand Down

0 comments on commit 1104271

Please sign in to comment.