File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
## [ Unreleased]
8
8
### Added
9
9
### Changed
10
+ - ` Export ` class call by reference bug fixed
10
11
## [ 0.9] - 2024-07-01
11
12
### Added
12
13
- Anaconda workflow
@@ -260,4 +261,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
260
261
[ 0.4 ] : https://github.com/openscilab/pymilo/compare/v0.3...v0.4
261
262
[ 0.3 ] : https://github.com/openscilab/pymilo/compare/v0.2...v0.3
262
263
[ 0.2 ] : https://github.com/openscilab/pymilo/compare/v0.1...v0.2
263
- [ 0.1 ] : https://github.com/openscilab/pymilo/compare/e887108...v0.1
264
+ [ 0.1 ] : https://github.com/openscilab/pymilo/compare/e887108...v0.1
Original file line number Diff line number Diff line change 9
9
from .exceptions .serialize_exception import PymiloSerializationException , SerializationErrorTypes
10
10
from traceback import format_exc
11
11
from warnings import warn
12
+ from copy import deepcopy
12
13
13
14
14
15
class Export :
@@ -28,7 +29,7 @@ def __init__(self, model):
28
29
:type model: any class of the sklearn's linear models
29
30
:return: an instance of the Pymilo Export class
30
31
"""
31
- self .data = get_sklearn_data (model )
32
+ self .data = get_sklearn_data (deepcopy ( model ) )
32
33
self .version = get_sklearn_version ()
33
34
self .type = get_sklearn_type (model )
34
35
You can’t perform that action at this time.
0 commit comments