Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrjurkiewicz committed Sep 13, 2024
1 parent a23751e commit d67c976
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/elephants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Programs

elephants/*

Example scripts for scikit-learn
Examples of scikit-learn scripts
================================

Additionally, we provide the `elephants.skl` subpackage, which offers examples on how to use the scikit-learn library to train machine learning algorithms for detecting elephant flows based on the first packet. None of previous works analyze metrics such as flow table reduction or the amount of traffic transmitted after flow classification, which we believe are crucial from the perspective of traffic engineering and QoS. These studies primarily focus on classification accuracy, measured by parameters like true positive rate, true negative rate, and accuracy of flow size and duration prediction. They provide limited insight into the effectiveness of the analyzed algorithms in our specific application. For example, misclassifying the largest flow in the network has a much greater impact on the change in traffic coverage than misclassifying a small flow. The metrics presented so far do not account for this difference. Our proposal is to use novel metrics for evaluating ML algorithms in the context of elephant flow detection, specifically flow table occupancy reduction and fraction of traffic covered. There is a tradeoff between these two metrics: increasing the elephant detection threshold leads to greater flow table reduction but decreases the fraction of covered traffic.
Expand Down
2 changes: 1 addition & 1 deletion docs/elephants/skl/plot_regressors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
**************************

.. argparse::
:ref: flow_models.elephants.skl.ploy_regressors.parser
:ref: flow_models.elephants.skl.plot_regressors.parser
:prog: python3 -m flow_models.elephants.skl.plot_regressors
6 changes: 3 additions & 3 deletions flow_models/elephants/skl/plot_classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def __call__(self, value, clip=None):

def parser():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('-O', '--output', default='sklearn', help='output directory and plot file name')
p.add_argument('--mixture', help='')
p.add_argument('files', help='directory')
p.add_argument('-O', '--output', default='sklearn', help='results directory/filenames prefix')
p.add_argument('--mixture', help='additionally plots mixture from that directory')
p.add_argument('files', help='results directory with .tsv files')
return p

def load_data(app_args):
Expand Down
6 changes: 3 additions & 3 deletions flow_models/elephants/skl/plot_regressors.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def __call__(self, value, clip=None):

def parser():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('-O', '--output', default='sklearn', help='output directory and plot file name')
p.add_argument('--mixture', help='')
p.add_argument('files', help='directory')
p.add_argument('-O', '--output', default='sklearn', help='results directory/filenames prefix')
p.add_argument('--mixture', help='additionally plots mixture from that directory')
p.add_argument('files', help='results directory with .tsv files')
return p

def load_data(app_args):
Expand Down

0 comments on commit d67c976

Please sign in to comment.