# Path: moonlight/glyphs/base.py
# class GlyphsTensorColumns(enum.IntEnum):
# class BaseGlyphClassifier(object):
#   STAFF_INDEX = 0
#   Y_POSITION = 1
#   X = 2
#   TYPE = 3
#   def __init__(self):
#   def get_detected_glyphs(self):
#   def glyph_predictions_to_page(self, predictions):
#     def create_glyph(glyph):
#     def generate_staff(staff_num):
# 
# Path: moonlight/glyphs/knn.py
# K_NEAREST_VALUE = 3
# NUM_GLYPHS = len(musicscore_pb2.Glyph.Type.keys())
# class NearestNeighborGlyphClassifier(
#     convolutional.Convolutional1DGlyphClassifier):
#   def __init__(self, corpus_file, staffline_extractor, **kwargs):
#   def staffline_predictions(self):
# def _squared_euclidean_distance_matrix(a, b):


import tempfile
import pandas as pd
import tensorflow as tf
from moonlight.glyphs import base
from moonlight.glyphs import knn
from moonlight.protobuf import musicscore_pb2
# Copyright 2018 Google LLC
#
# 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
#
#     https://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.
"""Tests for the KNN glyph classifier."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




STAFF_INDEX = base.GlyphsTensorColumns.STAFF_INDEX

# Path: moonlight/glyphs/base.py
# class GlyphsTensorColumns(enum.IntEnum):
# class BaseGlyphClassifier(object):
#   STAFF_INDEX = 0
#   Y_POSITION = 1
#   X = 2
#   TYPE = 3
#   def __init__(self):
#   def get_detected_glyphs(self):
#   def glyph_predictions_to_page(self, predictions):
#     def create_glyph(glyph):
#     def generate_staff(staff_num):
# 
# Path: moonlight/glyphs/knn.py
# K_NEAREST_VALUE = 3
# NUM_GLYPHS = len(musicscore_pb2.Glyph.Type.keys())
# class NearestNeighborGlyphClassifier(
#     convolutional.Convolutional1DGlyphClassifier):
#   def __init__(self, corpus_file, staffline_extractor, **kwargs):
#   def staffline_predictions(self):
# def _squared_euclidean_distance_matrix(a, b):


# Path: moonlight/glyphs/knn_test.py
import tempfile
import pandas as pd
import tensorflow as tf
from moonlight.glyphs import base
from moonlight.glyphs import knn
from moonlight.protobuf import musicscore_pb2

# Copyright 2018 Google LLC
#
# 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
#
#     https://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.
"""Tests for the KNN glyph classifier."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




STAFF_INDEX = base.GlyphsTensorColumns.STAFF_INDEX

Y_POSITION = base.GlyphsTensorColumns.Y_POSITION