Skip to content
View Quetzalcohuatl's full-sized avatar

Block or report Quetzalcohuatl

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. fast inplace pandas sorting fast inplace pandas sorting
    1
    # https://github.com/pandas-dev/pandas/issues/15389
    2
    
                  
    3
    import pandas
    4
    import numpy
    5
    import resource
  2. how to freeze Pytorch layers how to freeze Pytorch layers
    1
    # View layers with model.children()
    2
    # Get params with module.parameters()
    3
    
                  
    4
    m = resnet50(pretrained=True)
    5
    _ = m.train()
  3. Python Bound Class Methods Python Bound Class Methods
    1
    class Car():
    2
        def __init__(self, miles_traveled):
    3
            self.miles_traveled = miles_traveled
    4
        def ride(self, miles):
    5
            self.miles_traveled += miles
  4. USEFUL TERMINAL COMMANDS USEFUL TERMINAL COMMANDS
    1
    # See percent ram used (Inspired from howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/)
    2
    free -m | grep Mem | awk '{print ($3/$2)*100}'
    3
    
                  
    4
    # Show amount of storage used
    5
    df -h