mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-02 23:51:53 +01:00
Merge 60e3d572be
into 72eda9a24f
This commit is contained in:
commit
cc9d41f03a
@ -8,7 +8,7 @@ enum FeatureVal {
|
||||
|
||||
// A Feture has a name and a value
|
||||
// The name for now is 'id' of type string
|
||||
// Eventually this needs to be flexible - example to accomodate feature-id
|
||||
// Eventually this needs to be flexible - example to accommodate feature-id
|
||||
struct Feature {
|
||||
id: String,
|
||||
val: FeatureVal,
|
||||
|
@ -101,7 +101,7 @@ public class CriticalExceptionHandler {
|
||||
try {
|
||||
Thread.sleep(3 * 60 * 1000);
|
||||
} catch (InterruptedException e) {
|
||||
LOG.error(FATAL, "interupted sleep while shutting down.");
|
||||
LOG.error(FATAL, "interrupted sleep while shutting down.");
|
||||
}
|
||||
LOG.info("Terminate JVM.");
|
||||
//CHECKSTYLE:OFF RegexpSinglelineJava
|
||||
|
@ -175,7 +175,7 @@ public abstract class SimpleStreamIndexer<K, V> {
|
||||
|
||||
protected abstract void validateAndIndexRecord(ConsumerRecord<K, V> record);
|
||||
|
||||
// Shutdown hook which can be called from a seperate thread. Calling consumer.wakeup() interrupts
|
||||
// Shutdown hook which can be called from a separate thread. Calling consumer.wakeup() interrupts
|
||||
// the running indexer and causes it to first stop polling for new records before gracefully
|
||||
// closing the consumer.
|
||||
public void close() {
|
||||
|
@ -31,7 +31,7 @@ import com.twitter.search.queryparser.query.annotation.Annotation;
|
||||
* opposite value of isPositive of the parent group.
|
||||
*
|
||||
* I'll try to break it down a bit further. Let's assume "a" and "b" are hf terms, and '
|
||||
* "[hf_term_pair a b]" represents querying their co-occurence.
|
||||
* "[hf_term_pair a b]" represents querying their co-occurrence.
|
||||
* Query (* a b not_hf) can become (* [hf_term_pair a b] not_hf)
|
||||
* Query (+ -a -b -not_hf) can become (+ -[hf_term_pair a b] -not_hf)
|
||||
* These two rules represent the bulk of the rewrites that this class makes.
|
||||
|
@ -411,7 +411,7 @@ def get_trainer_parser():
|
||||
action=parse_comma_separated_list(element_type=float),
|
||||
default=None,
|
||||
help="Required for 'piecewise_constant_values' learning_rate_decay. "
|
||||
"A list of comma seperated floats or ints that specifies the values "
|
||||
"A list of comma separated floats or ints that specifies the values "
|
||||
"for the intervals defined by boundaries. It should have one more "
|
||||
"element than boundaries.")
|
||||
parser_piecewise_constant.add_argument(
|
||||
@ -419,7 +419,7 @@ def get_trainer_parser():
|
||||
action=parse_comma_separated_list(element_type=int),
|
||||
default=None,
|
||||
help="Required for 'piecewise_constant_values' learning_rate_decay. "
|
||||
"A list of comma seperated integers, with strictly increasing entries.")
|
||||
"A list of comma separated integers, with strictly increasing entries.")
|
||||
|
||||
# Create the parser for the "inverse_learning_rate_decay_fn"
|
||||
parser_inverse = subparsers.add_parser('inverse_learning_rate_decay',
|
||||
|
Loading…
Reference in New Issue
Block a user