Coder Social home page Coder Social logo

deepanomalydetection_benchmark's People

Contributors

shinmura0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deepanomalydetection_benchmark's Issues

Mistake in AdaCos layer implementation

Hello
how are you?
Thanks for contributing your project.
I have a question.
u said that the parameters of AdaCos are adjusted automatically.
However, I found that the parameters are fixed in your project.
Could u explain this in detail.
Thanks

train とtestが定義されている場所を教えてください

以下に出てくるtrainとtestはどこで定義されていますか?
定義されていない場合、trainは異常も含む全学習データ、testは異常も含む全テストデータという理解でよろしいでしょうか。

    """
    テスト用
    model: 特徴抽出用モデル(predict)
    """
    model = Model(model.get_layer(index=0).input, model.get_layer(index=-4).output) # Arcfaceを削除
    
    # 正常vectorの呼び出し
    hold_vector = model.predict(train)# shape(len(train), 1280)

    # test_vectorの呼び出し
    predict_vector = model.predict(test)# shape(len(test), 1280)

    score = []

    for i in range(len(predict_vector)):
        cos_similarity = cosine_similarity(predict_vector[i], hold_vector) # shape(len(test), len(train))
        score.append(np.max(cos_similarity))

    return np.array(score)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.