Did I find the right examples for you? yes no

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)

src/g/a/gala-0.1.1/gala/ncut.py   gala(Download)
import numpy
import agglo
import morpho
import scipy.sparse
import scipy.sparse.linalg

src/g/a/gala-0.1.1/gala/evaluate.py   gala(Download)
        return raw_edit_distance(aseg, gt, size_threshold)
    else:
        import agglo
        bps = agglo.best_possible_segmentation(sp, gt)
        return raw_edit_distance(aseg, bps, size_threshold)

src/g/a/gala-HEAD/gala/ncut.py   gala(Download)
import numpy
import agglo
import morpho
import scipy.sparse
import scipy.sparse.linalg

src/g/a/gala-HEAD/gala/evaluate.py   gala(Download)
        return raw_edit_distance(aseg, gt, size_threshold)
    else:
        import agglo
        bps = agglo.best_possible_segmentation(sp, gt)
        return raw_edit_distance(aseg, bps, size_threshold)

src/r/a/ray-HEAD/ray/ncut.py   ray(Download)
import numpy
import agglo
import morpho
import scipy.sparse
import scipy.sparse.linalg

src/r/a/ray-HEAD/ray/evaluate.py   ray(Download)
def edit_distance(aseg, gt, ws=None):
    if ws is None:
        return edit_distance_to_bps(aseg, gt)
    import agglo
    return edit_distance_to_bps(aseg, agglo.best_possible_segmentation(ws, gt))