You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the readthedocs (code block [153]), there is a function called node_scale_root_height:
# scale tree to be 2X length of number of matrix cols
ctree = tree.mod.node_scale_root_height(spdata.shape[1] * 2)
However, I have tried running this bit of code, and got the following error: "AttributeError: 'TreeModAPI' object has no attribute 'node_scale_root_height'". The full documentation doesn't mention this, and when I click on "edge/dist changes" I get a 404 error.
The text was updated successfully, but these errors were encountered:
Hi Luka,
Thanks for your patience, we are still working to update the documentation
for the latest big updates. You can find this and other methods for
modifying trees in the `mod` subpackage. The function you are looking for
has been renamed `mod.edges_scale_to_root_height`. If you are using an
interactive environment like jupyter or ipython you can use tab-completion
to see all of the available options.
[image: image.png]
Best,
Deren
--
Deren Eaton
Associate Professor, Department of E3B
Affiliate Member, Data Science Institute
Committee on Equity and Diversity
Columbia University
https://eaton-lab.org <http://eaton-lab.org>
In the readthedocs (code block [153]), there is a function called
node_scale_root_height
:However, I have tried running this bit of code, and got the following error: "AttributeError: 'TreeModAPI' object has no attribute 'node_scale_root_height'". The full documentation doesn't mention this, and when I click on "edge/dist changes" I get a 404 error.
The text was updated successfully, but these errors were encountered: