Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
from torch import nn | |
import torch.nn.functional as F | |
class Ridge: | |
def __init__(self, alpha = 0, fit_intercept = True,): | |
self.alpha = alpha | |
self.fit_intercept = fit_intercept | |
def fit(self, X: torch.tensor, y: torch.tensor) -> None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from loguru import logger | |
parser = argparse.ArgumentParser(description='Minimal example of dumping args into log file.') | |
parser.add_argument('--flag',type=str, | |
help='Some parameter flag') | |
args = parser.parse_args() | |
logger.add("file_{time}.log") | |
for arg, value in sorted(vars(args).items()): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p(c = True | tar = True, smoking = True) = 0.99 | |
p(c = True | tar = False, smoking = True) = 0.2 | |
p(c = True | tar = False, smoking = False) = 0.01 | |
p(c = True | tar = True, smoking = False) = 0.99 | |
p(smoking = True) = 0.1 | |
p(smoking = False) = 0.9 | |
p(tar = True | smoking = True) = 0.99 | |
p(tar = False | smoking = True) = 0.01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Father | Son | |
---|---|---|
65.0 | 59.8 | |
63.3 | 63.2 | |
65.0 | 63.3 | |
65.8 | 62.8 | |
61.1 | 64.3 | |
63.0 | 64.2 | |
65.4 | 64.1 | |
64.7 | 64.0 | |
66.1 | 64.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
now = datetime.utcnow().strftime("%Y%m%d%H%M%S") | |
root_logdir = "tf_logs" | |
logdir = "{}/run-{}/".format(root_logdir, now) |
NewerOlder