cbe2758007e312c168aef30328693027b6a4b7e9,conceptnet5/vectors/debias.py,,de_bias_category,#Any#Any#Any#,502
Before Change
// Make a modified version of the space that projects the bias vectors to 0.
// Then weight each row of that space by "applicability", the probability
// that each row should be de-biased.
modified_component = reject_subspace(frame, components_to_reject).mul(applicability, axis=0)
del components_to_reject
// Make another component representing the vectors that should not be
// de-biased: the original space times (1 - applicability).
After Change
// Then weight each row of that space by "applicability", the probability
// that each row should be de-biased. This is also done on shards.
modified_component = np.zeros(shape=frame.values.shape, dtype=np.float32)
for shard_start, shard_end in make_shard_endpoints(len(frame)):
modified_component[shard_start:shard_end, :] = \
reject_subspace(frame[shard_start:shard_end], components_to_reject).mul(
applicability[shard_start:shard_end], axis=0).values
del components_to_reject
// Make another component representing the vectors that should not be
// de-biased: the original space times (1 - applicability).
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: commonsense/conceptnet5
Commit Name: cbe2758007e312c168aef30328693027b6a4b7e9
Time: 2018-06-06
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: de_bias_category
Project Name: commonsense/conceptnet5
Commit Name: cbe2758007e312c168aef30328693027b6a4b7e9
Time: 2018-06-06
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: de_bias_binary
Project Name: Microsoft/nni
Commit Name: 2de52a8976971da4836727ba9242fedcc7474878
Time: 2020-01-16
Author: 656569648@qq.com
File Name: src/sdk/pynni/nni/compression/torch/compressor.py
Class Name: Pruner
Method Name: export_model