Home
last modified time | relevance | path

Searched +refs:plot +refs:filename (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mindspore/tests/ut/python/dataset/
Dtest_random_color_adjust.py66 …dom_color_adjust_op(brightness=(1, 1), contrast=(1, 1), saturation=(1, 1), hue=(0, 0), plot=False): argument
114 if plot:
118 def test_random_color_adjust_op_brightness(plot=False): argument
125 util_test_random_color_adjust_op(brightness=(0.5, 0.5), plot=plot)
138 def test_random_color_adjust_op_contrast(plot=False): argument
145 util_test_random_color_adjust_op(contrast=(0.5, 0.5), plot=plot)
158 def test_random_color_adjust_op_saturation(plot=False): argument
164 util_test_random_color_adjust_op(saturation=(0.5, 0.5), plot=plot)
177 def test_random_color_adjust_op_hue(plot=False): argument
183 util_test_random_color_adjust_op(hue=(0.5, 0.5), plot=plot)
[all …]
Dtest_random_posterize.py31 def test_random_posterize_op_c(plot=False, run_golden=False): argument
71 filename = "random_posterize_01_result_c.npz"
72 save_and_check_md5(data1, filename, generate_golden=GENERATE_GOLDEN)
74 if plot:
82 def test_random_posterize_op_fixed_point_c(plot=False, run_golden=True): argument
112 filename = "random_posterize_fixed_point_01_result_c.npz"
113 save_and_check_md5(data1, filename, generate_golden=GENERATE_GOLDEN)
115 if plot:
119 def test_random_posterize_default_c_md5(plot=False, run_golden=True): argument
150 filename = "random_posterize_01_default_result_c.npz"
[all …]
Dtest_random_solarize_op.py32 def test_random_solarize_op(threshold=(10, 150), plot=False, run_golden=True): argument
58 filename = "random_solarize_01_result.npz"
59 save_and_check_md5(data1, filename, generate_golden=GENERATE_GOLDEN)
68 if plot:
75 def test_random_solarize_mnist(plot=False, run_golden=True): argument
95 if plot:
99 filename = "random_solarize_02_result.npz"
100 save_and_check_md5(mnist_2, filename, generate_golden=GENERATE_GOLDEN)
129 test_random_solarize_op((10, 150), plot=True, run_golden=True)
130 test_random_solarize_op((12, 120), plot=True, run_golden=False)
[all …]
Dtest_equalize.py33 def test_equalize_py(plot=False): argument
84 if plot:
88 def test_equalize_c(plot=False): argument
128 if plot:
138 def test_equalize_py_c(plot=False): argument
187 if plot:
211 def test_equalize_mnist_c(plot=False): argument
231 filename = "equalize_mnist_result_c.npz"
232 save_and_check_md5(ds_equalize_c, filename, generate_golden=GENERATE_GOLDEN)
234 if plot:
[all …]
Dtest_random_color.py39 def test_random_color_py(degrees=(0.1, 1.9), plot=False): argument
90 if plot:
94 def test_random_color_c(degrees=(0.1, 1.9), plot=False, run_golden=True): argument
128 filename = "random_color_op_02_result.npz"
129 save_and_check_md5(data2, filename, generate_golden=GENERATE_GOLDEN)
131 if plot:
156 filename = "random_color_01_result.npz"
157 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
164 def test_compare_random_color_op(degrees=None, plot=False): argument
210 if plot:
[all …]
Dtest_random_sharpness.py33 def test_random_sharpness_py(degrees=(0.7, 0.7), plot=False): argument
89 if plot:
114 filename = "random_sharpness_py_01_result.npz"
115 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
122 def test_random_sharpness_c(degrees=(1.6, 1.6), plot=False): argument
177 if plot:
200 filename = "random_sharpness_cpp_01_result.npz"
201 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
208 def test_random_sharpness_c_py(degrees=(1.0, 1.0), plot=False): argument
259 if plot:
[all …]
Dtest_resize.py33 def test_resize_op(plot=False): argument
34 def test_resize_op_parameters(test_name, size, plot): argument
57 if plot:
60 test_resize_op_parameters("Test single int for size", 10, plot=False)
61 test_resize_op_parameters("Test tuple for size", (10, 15), plot=False)
82 def test_resize_md5(plot=False): argument
83 def test_resize_md5_parameters(test_name, size, filename, seed, plot): argument
100 save_and_check_md5(data1, filename, generate_golden=GENERATE_GOLDEN)
108 if plot:
115 test_resize_md5_parameters("Test single int for size", 5, "resize_01_result.npz", 5, plot)
[all …]
Dtest_ten_crop.py32 def util_test_ten_crop(crop_size, vertical_flip=False, plot=False): argument
66 if plot:
74 def test_ten_crop_op_square(plot=False): argument
80 util_test_ten_crop(200, plot=plot)
83 def test_ten_crop_op_rectangle(plot=False): argument
89 util_test_ten_crop((200, 150), plot=plot)
92 def test_ten_crop_op_vertical_flip(plot=False): argument
98 util_test_ten_crop(200, vertical_flip=True, plot=plot)
117 filename = "ten_crop_01_result.npz"
118 save_and_check_md5(data2, filename, generate_golden=GENERATE_GOLDEN)
[all …]
Dtest_invert.py47 def test_invert_py(plot=False): argument
98 if plot:
102 def test_invert_c(plot=False): argument
142 if plot:
152 def test_invert_py_c(plot=False): argument
201 if plot:
240 filename = "invert_01_result_py.npz"
241 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
260 filename = "invert_01_result_c.npz"
261 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
[all …]
Dtest_autocontrast.py32 def test_auto_contrast_py(plot=False): argument
85 filename = "autocontrast_01_result_py.npz"
86 save_and_check_md5(ds_auto_contrast, filename, generate_golden=GENERATE_GOLDEN)
88 if plot:
92 def test_auto_contrast_c(plot=False): argument
142 filename = "autocontrast_01_result_c.npz"
143 save_and_check_md5(ds_auto_contrast_c, filename, generate_golden=GENERATE_GOLDEN)
145 if plot:
149 def test_auto_contrast_one_channel_c(plot=False): argument
202 if plot:
[all …]
Dtest_random_horizontal_flip.py45 def test_random_horizontal_op(plot=False): argument
78 if plot:
97 filename = "random_horizontal_01_c_result.npz"
98 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
123 filename = "random_horizontal_01_py_result.npz"
124 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
173 def test_random_horizontal_comp(plot=False): argument
209 if plot:
239 test_random_horizontal_op(plot=True)
244 test_random_horizontal_comp(plot=True)
Dtest_random_vertical_flip.py45 def test_random_vertical_op(plot=False): argument
78 if plot:
97 filename = "random_vertical_01_c_result.npz"
98 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
123 filename = "random_vertical_01_py_result.npz"
124 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
172 def test_random_vertical_comp(plot=False): argument
209 if plot:
239 test_random_vertical_op(plot=True)
244 test_random_vertical_comp(plot=True)
Dtest_random_affine.py34 def test_random_affine_op(plot=False): argument
68 if plot:
72 def test_random_affine_op_c(plot=False): argument
102 if plot:
127 filename = "random_affine_01_result.npz"
128 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
154 filename = "random_affine_01_c_result.npz"
155 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
180 filename = "random_affine_01_default_c_result.npz"
181 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
[all …]
Dtest_center_crop.py32 def test_center_crop_op(height=375, width=375, plot=False): argument
56 if plot:
74 filename = "center_crop_01_result.npz"
75 save_and_check_md5(data1, filename, generate_golden=GENERATE_GOLDEN)
78 def test_center_crop_comp(height=375, width=375, plot=False): argument
111 if plot:
156 test_center_crop_op(600, 600, plot=True)
160 test_center_crop_comp(plot=True)
Dtest_random_crop_decode_resize.py30 def test_random_crop_decode_resize_op(plot=False): argument
58 if plot:
76 filename = "random_crop_decode_resize_01_result.npz"
77 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
85 test_random_crop_decode_resize_op(plot=True)
Dtest_rescale_op.py55 def test_rescale_op(plot=False): argument
81 if plot:
101 filename = "rescale_01_result.npz"
102 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
106 test_rescale_op(plot=True)
Dtest_random_order.py32 def test_random_order_op(plot=False): argument
67 if plot:
92 filename = "random_order_01_result.npz"
93 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
101 test_random_order_op(plot=True)
Dtest_random_crop.py37 def test_random_crop_op_c(plot=False): argument
63 if plot:
66 def test_random_crop_op_py(plot=False): argument
98 if plot:
117 filename = "random_crop_01_c_result.npz"
118 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
143 filename = "random_crop_01_py_result.npz"
144 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
166 filename = "random_crop_02_c_result.npz"
167 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
[all …]
Dtest_random_resize.py30 def test_random_resize_op(plot=False): argument
55 if plot:
74 filename = "random_resize_01_result.npz"
75 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
108 test_random_resize_op(plot=True)
Dtest_random_erasing.py33 def test_random_erasing_op(plot=False): argument
73 if plot:
95 filename = "random_erasing_01_result.npz"
96 save_and_check_md5(data, filename, generate_golden=GENERATE_GOLDEN)
104 test_random_erasing_op(plot=True)
/third_party/boost/libs/numeric/ublas/benchmarks/
Dplot.py15 class plot(object): class
22 def load_file(filename): argument
24 lines = open(filename, 'r').readlines()
30 return plot(label, list(zip(*data)))
44 plot = plt.loglog
46 plot = plt.semilogx
48 plot = plt.semilogy
50 plot = plt.plot
51 plots = [plot(r.data[0], r.data[1], label=r.label) for r in runs]
/third_party/boost/libs/math/doc/graphs/
Dbessel_i0_errors.cpp74 …my_plot.plot(small, "< 1eps").stroke_color(boost::svg::green).fill_color(boost::svg::green).siz… in test_type()
75 …my_plot.plot(medium, "< 2eps").stroke_color(boost::svg::orange).fill_color(boost::svg::orange).… in test_type()
76 …my_plot.plot(large, "> 2eps").stroke_color(boost::svg::red).fill_color(boost::svg::red).size(2); in test_type()
77 std::string filename("bessel_i0_0_7_"); in test_type() local
78 filename += name; in test_type()
79 filename += ".svg"; in test_type()
80 my_plot.write(filename); in test_type()
117 …my_plot2.plot(small, "< 1eps").stroke_color(boost::svg::green).fill_color(boost::svg::green).si… in test_type()
118 …my_plot2.plot(medium, "< 2eps").stroke_color(boost::svg::orange).fill_color(boost::svg::orange)… in test_type()
119 …my_plot2.plot(large, "> 2eps").stroke_color(boost::svg::red).fill_color(boost::svg::red).size(2… in test_type()
[all …]
Dbessel_i1_errors.cpp74 …my_plot.plot(small, "< 1eps").stroke_color(boost::svg::green).fill_color(boost::svg::green).siz… in test_type()
77 …my_plot.plot(medium, "< 2eps").stroke_color(boost::svg::orange).fill_color(boost::svg::orange).… in test_type()
79 …my_plot.plot(large, "> 2eps").stroke_color(boost::svg::red).fill_color(boost::svg::red).size(2); in test_type()
81 std::string filename("bessel_i1_0_7_"); in test_type() local
82 filename += name; in test_type()
83 filename += ".svg"; in test_type()
84 my_plot.write(filename); in test_type()
123 …my_plot2.plot(small, "< 1eps").stroke_color(boost::svg::green).fill_color(boost::svg::green).si… in test_type()
126 …my_plot2.plot(medium, "< 2eps").stroke_color(boost::svg::orange).fill_color(boost::svg::orange)… in test_type()
128 …my_plot2.plot(large, "> 2eps").stroke_color(boost::svg::red).fill_color(boost::svg::red).size(2… in test_type()
[all …]
/third_party/boost/libs/compute/perf/
Dperf.py29 filename = "./perf/" + proc
31 if not os.path.isfile(filename):
32 print("Error: failed to find ", filename, " for running")
35 output = subprocess.check_output([filename, str(int(size))])
219 plot = None variable
221 plot = "time" variable
223 plot = "rate" variable
225 if plot == "time":
229 elif plot == "rate":
234 if plot:
/third_party/re2/benchlog/
Dbenchplot.py35 for filename in self.tempfiles:
36 os.remove(filename)
38 def parse_re2_benchlog(self, filename): argument
45 with open(filename) as f:
95 with gnuplot() as plot:
96 plot.output = args.benchlog
97 plot.parse_re2_benchlog(args.benchlog)
98 plot.run()

123