shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Writing a utility function to make a shallow copy of an SGObject #5175

Closed jaskiratsingh2000 closed 2 years ago

jaskiratsingh2000 commented 3 years ago

There is a clone method to perform deep cloning, which generally means copying features, labels, and weights, which is not always needed. This can be avoided by passing the respective ParameterProperties to the make_clone function, Hence this pull request is the creation of the utility function that makes a shallow copy within SGObject with parameters flagging.

Hence this Pull Request resolve this fix by committing the files within the following folders as mentioned below

📁 shogun
├── 📁 src
        └──📁 shogun
               └──📁 base
               │      └──📝 SGObject.h
               └──📁 multiclass
                       └──📁 tree
                              └──📝 RelaxedTree.cpp

Feel free to suggest any changes required. Thanks! :smiley:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue is now being closed due to a lack of activity. Feel free to reopen it.