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 optuna | |
from optuna.trial import TrialState | |
import numpy as np | |
from typing import Dict, List, Optional | |
from collections import defaultdict | |
class ParamRepeatPruner: | |
"""Prunes reapeated trials, which means trials with the same paramters won't waste time/resources.""" |
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
#!/usr/bin/env python | |
# | |
# Tests distance between point and triangle in 3D. Aligns and uses 2D technique. | |
# | |
# Was originally some code on mathworks | |
import numpy | |
from numpy import dot | |
from math import sqrt |