Exemple #1
0
# limitations under the License.

from matplotlib import pyplot as plt

import utils_plot

circuits = [
    'PINI3_H+',
    'SNI_H+',
    'GreedyMult_H+',
]

kind_d = {
    2: '-',
    4: '-',
    8: '-',
    16: '-',
    32: '-',
}

for i, circuit in enumerate(circuits):
    for d, kind in kind_d.items():
        utils_plot.plot_line(circuit,
                             d,
                             utils_plot.colors[i],
                             kind,
                             label=utils_plot.LABEL_NAME)

utils_plot.setup_plot()
utils_plot.display()
Exemple #2
0
import utils_plot

circuits = [
    'SNI_H*',
]

kind_d = {
    2: '.-',
    3: '.-',
    4: '.-',
    5: '.-',
    6: '.-',
    7: '.-',
    8: '.-',
    16: '-',
    32: '-',
}

for i, circuit in enumerate(circuits):
    for d, kind in kind_d.items():
        utils_plot.plot_line(circuit,
                             d,
                             utils_plot.colors[i],
                             kind,
                             label=utils_plot.LABEL_NAME,
                             obs_mis=np.logspace(-1.32, -1.22, 100))

utils_plot.setup_plot()
utils_plot.display()
Exemple #3
0
import utils_plot

circuits = [
        'SNI',
        'SNI_H',
        ]

kind_d = {
        4: '-',
        16: '-',
        }

i = 0
for d in kind_d.keys():
    for circuit in circuits:
        utils_plot.plot_line(circuit, d, color=utils_plot.colors[i],
            kind=kind_d[d])
        target_mis = obs_mi.lb_mi(utils_plot.obs_mis, circuit, d)
        plt.loglog(
                utils_plot.obs_mis,
                target_mis,
                f'C{i}'+'-.',
                #label=f'{d} shares {circuit.replace("_", "-")} LB'
                )
        i += 1

plt.ylim(1e-30, None)
utils_plot.setup_plot()
utils_plot.display()

#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import numpy as np
from matplotlib import pyplot as plt

import utils_plot

circuits = [
    'SNI',
    'SNI_H+',
    'SNI_H+ naive',
    #'SNI_hpe',
    #'SNI_hpb',
    #'SNI_H',
    #'SNI_ht',
]

obs_mis = np.logspace(-2.5, -1.0, 100)

for circuit in circuits:
    utils_plot.plot_line(circuit, obs_mis=obs_mis)

utils_plot.setup_plot()
utils_plot.display()
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from matplotlib import pyplot as plt

import utils_plot
import obs_mi

circuits = [
    'PINI2',
    'PINI1',
    'SNI',
]

for i, circuit in enumerate(circuits):
    utils_plot.plot_line(circuit, color=utils_plot.colors[i])
    target_mis = obs_mi.lb2_mi(utils_plot.obs_mis, circuit,
                               utils_plot.default_d)
    plt.loglog(
        utils_plot.obs_mis,
        target_mis,
        f'C{i}' + '-.',
    )

utils_plot.setup_plot()
utils_plot.display()
# Copyright 2018 Gaëtan Cassiers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from matplotlib import pyplot as plt

import utils_plot

circuits = [
    'PINI3_H*',
    'PINI3_H+',
    'SNI_H*',
    'SNI_H+',
]
for circuit in circuits:
    utils_plot.plot_line(circuit)

utils_plot.setup_plot()
utils_plot.display()
Exemple #7
0
import itertools as it

from matplotlib import pyplot as plt

import utils_plot

circuits = [
    ('SNI', 'SNIb'),
    ('SNI_H', 'SNI_Hb'),
    ('SNI_H*', 'SNI_H*b'),
]

if 0:
    for i, (c, cb) in enumerate(circuits):
        utils_plot.plot_line(c, color=f'C{i}')
        utils_plot.plot_line(cb,
                             color=f'C{i}',
                             kind='^-',
                             label=None,
                             markevery=5)

    utils_plot.setup_plot()
    utils_plot.display()
    #plt.show()
else:
    for i, circuit in enumerate(circuits[1]):
        for d in [2, 4, 8, 16, 32]:
            utils_plot.plot_line(circuit,
                                 d,
                                 utils_plot.colors[i],