diff --git a/Project.toml b/Project.toml index 4e5e8c37..44337872 100644 --- a/Project.toml +++ b/Project.toml @@ -6,6 +6,7 @@ version = "0.10.6" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" CellularAutomata = "878138dc-5b27-11ea-1a71-cb95d38d6b29" +Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" @@ -25,6 +26,7 @@ RCMLJLinearModelsExt = "MLJLinearModels" Adapt = "4.1.1" Aqua = "0.8" CellularAutomata = "0.0.2" +Compat = "4.16.0" DifferentialEquations = "7.15.0" LIBSVM = "0.8" LinearAlgebra = "1.10" @@ -50,5 +52,4 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "Test", "SafeTestsets", "Random", "DifferentialEquations", - "MLJLinearModels", "LIBSVM", "Statistics"] +test = ["Aqua", "Test", "SafeTestsets", "Random", "DifferentialEquations", "MLJLinearModels", "LIBSVM", "Statistics"] diff --git a/src/ReservoirComputing.jl b/src/ReservoirComputing.jl index 8cf16ea7..447ce8fe 100644 --- a/src/ReservoirComputing.jl +++ b/src/ReservoirComputing.jl @@ -2,6 +2,7 @@ module ReservoirComputing using Adapt: adapt using CellularAutomata: CellularAutomaton +using Compat: @compat using LinearAlgebra: eigvals, mul!, I using NNlib: fast_act, sigmoid using Random: Random, AbstractRNG @@ -12,6 +13,8 @@ using WeightInitializers: DeviceAgnostic, PartialFunction, Utils abstract type AbstractReservoirComputer end +@compat(public, (create_states)) + #general include("states.jl") include("predict.jl") @@ -31,12 +34,6 @@ include("esn/esn_predict.jl") include("reca/reca.jl") include("reca/reca_input_encodings.jl") -# Julia < 1.9 support -if !isdefined(Base, :get_extension) - include("../ext/RCMLJLinearModelsExt.jl") - include("../ext/RCLIBSVMExt.jl") -end - export NLADefault, NLAT1, NLAT2, NLAT3 export StandardStates, ExtendedStates, PaddedStates, PaddedExtendedStates export StandardRidge