Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plots.py and names of metrics files #24

Open
colin-byrneireland opened this issue Feb 17, 2020 · 7 comments
Open

plots.py and names of metrics files #24

colin-byrneireland opened this issue Feb 17, 2020 · 7 comments

Comments

@colin-byrneireland
Copy link

The documentations states that The plots shown below can be generated using plots.py file in the repo root. I don't appear to be able to locate this file though.

Also a statistical files metrics to leaf/models/metrics/stat_metrics.csv and leaf/models/metrics/sys_metrics.csv, they appear to be called metrics_stat.csv metrics_sys.csv.

Can you clarify the correct file names please.

@rey-sh
Copy link

rey-sh commented Mar 6, 2020

I have the same problem...

@pentium3
Copy link

Have you guys solved this problem?

@PeteBai
Copy link

PeteBai commented Sep 5, 2020

With a little tweak to the visualization_utils.py I am able to plot some of the figures, though I still think that a critical file is missing.

@mustansarsaeed
Copy link

I am also looking for the plotting script. Has anyone got the script? @PeteBai with visualization_utils.py, are you able to plot the exact figures mentioned in the paper?

@pengj97
Copy link

pengj97 commented Oct 14, 2021

I got the same problem...

@1ych
Copy link

1ych commented Mar 3, 2022

I got the same problem

@ZhengtianZhu
Copy link

ZhengtianZhu commented Oct 16, 2022

you should read the code and change the error.
in the main.py file, I believe the following is the right.

you guys please correct the code, I just don't know how to paste the code correctly.

def get_stat_writer_function(ids, groups, num_samples, args):
    def writer_fn(num_round, metrics, partition):
        metrics_writer.print_metrics(
            num_round, ids, metrics, groups, num_samples, partition, args.metrics_dir, '{}_{}'.format( 'stat',args.metrics_name))
            #num_round, ids, metrics, groups, num_samples, partition, args.metrics_dir, '{}_{}'.format(args.metrics_name, 'stat'))
    return writer_fn


def get_sys_writer_function(args):
    def writer_fn(num_round, ids, metrics, groups, num_samples):
        metrics_writer.print_metrics(
            num_round, ids, metrics, groups, num_samples, 'train', args.metrics_dir, '{}_{}'.format('sys',args.metrics_name))
            #num_round, ids, metrics, groups, num_samples, 'train', args.metrics_dir, '{}_{}'.format(args.metrics_name, 'sys'))
    return writer_fn

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants