@@ -75,7 +75,7 @@ function make_transform_matrix(
75
75
X:: Union{SparseMatrixCSC,Matrix} ,
76
76
Y:: Union{SparseMatrixCSC,Matrix} ;
77
77
output_format = :auto ,
78
- sparse_ratio = 0.2 ,
78
+ sparse_ratio = 0.05 ,
79
79
verbose = false ,
80
80
)
81
81
@@ -103,7 +103,7 @@ where X is a sparse matrix and Y is a dense matrix.
103
103
- `shift::Float64 = 0.02`: shift value for :additive decomposition
104
104
- `multiplier::Float64 = 1.01`: multiplier value for :multiplicative decomposition
105
105
- `output_format::Symbol = :auto`: to force output format to dense(:dense) or sparse(:sparse), make it auto(:auto) to determined by the program
106
- - `sparse_ratio::Float64 = 0.2 `: the ratio to decide whether a matrix is sparse
106
+ - `sparse_ratio::Float64 = 0.05 `: the ratio to decide whether a matrix is sparse
107
107
- `verbose::Bool = false`: if true, more information will be printed out
108
108
109
109
# Examples
@@ -128,7 +128,7 @@ JudiLing.make_transform_matrix(
128
128
JudiLing.make_transform_matrix(
129
129
...
130
130
output_format = :auto,
131
- sparse_ratio = 0.2 ,
131
+ sparse_ratio = 0.05 ,
132
132
...)
133
133
```
134
134
"""
@@ -139,7 +139,7 @@ function make_transform_matrix(
139
139
shift = 0.02 ,
140
140
multiplier = 1.01 ,
141
141
output_format = :auto ,
142
- sparse_ratio = 0.2 ,
142
+ sparse_ratio = 0.05 ,
143
143
verbose = false ,
144
144
)
145
145
@@ -181,7 +181,7 @@ where X is a dense matrix and Y is either a dense matrix or a sparse matrix.
181
181
- `shift::Float64 = 0.02`: shift value for :additive decomposition
182
182
- `multiplier::Float64 = 1.01`: multiplier value for :multiplicative decomposition
183
183
- `output_format::Symbol = :auto`: to force output format to dense(:dense) or sparse(:sparse), make it auto(:auto) to determined by the program
184
- - `sparse_ratio::Float64 = 0.2 `: the ratio to decide whether a matrix is sparse
184
+ - `sparse_ratio::Float64 = 0.05 `: the ratio to decide whether a matrix is sparse
185
185
- `verbose::Bool = false`: if true, more information will be printed out
186
186
187
187
# Examples
@@ -206,7 +206,7 @@ JudiLing.make_transform_matrix(
206
206
JudiLing.make_transform_matrix(
207
207
...
208
208
output_format = :auto,
209
- sparse_ratio = 0.2 ,
209
+ sparse_ratio = 0.05 ,
210
210
...)
211
211
```
212
212
"""
@@ -217,7 +217,7 @@ function make_transform_matrix(
217
217
shift = 0.02 ,
218
218
multiplier = 1.01 ,
219
219
output_format = :auto ,
220
- sparse_ratio = 0.2 ,
220
+ sparse_ratio = 0.05 ,
221
221
verbose = false ,
222
222
)
223
223
@@ -259,7 +259,7 @@ where X is a sparse matrix and Y is a sparse matrix.
259
259
- `shift::Float64 = 0.02`: shift value for :additive decomposition
260
260
- `multiplier::Float64 = 1.01`: multiplier value for :multiplicative decomposition
261
261
- `output_format::Symbol = :auto`: to force output format to dense(:dense) or sparse(:sparse), make it auto(:auto) to determined by the program
262
- - `sparse_ratio::Float64 = 0.2 `: the ratio to decide whether a matrix is sparse
262
+ - `sparse_ratio::Float64 = 0.05 `: the ratio to decide whether a matrix is sparse
263
263
- `verbose::Bool = false`: if true, more information will be printed out
264
264
265
265
# Examples
@@ -284,7 +284,7 @@ JudiLing.make_transform_matrix(
284
284
JudiLing.make_transform_matrix(
285
285
...
286
286
output_format = :auto,
287
- sparse_ratio = 0.2 ,
287
+ sparse_ratio = 0.05 ,
288
288
...)
289
289
```
290
290
"""
@@ -295,7 +295,7 @@ function make_transform_matrix(
295
295
shift = 0.02 ,
296
296
multiplier = 1.01 ,
297
297
output_format = :auto ,
298
- sparse_ratio = 0.2 ,
298
+ sparse_ratio = 0.05 ,
299
299
verbose = false ,
300
300
)
301
301
@@ -332,7 +332,7 @@ Convert output matrix format to either a dense matrix or a sparse matrix.
332
332
function format_matrix (
333
333
M:: Union{SparseMatrixCSC,Matrix} ,
334
334
output_format = :auto ;
335
- sparse_ratio = 0.2 ,
335
+ sparse_ratio = 0.05 ,
336
336
verbose = false ,
337
337
)
338
338
0 commit comments