public function save(array $data, string $filename)
    {
        if (!is_writeable(dirname($filename))) {
            throw new NeuralyzerConfigurationException(dirname($filename) . ' is not writable.');
        }

        file_put_contents($filename, Yaml::dump($data, 4));
    }