Skip to content

Commit

Permalink
remove init(l,r)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpsy committed May 16, 2020
1 parent b7d03be commit c811f7d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/shogun/kernel/LogKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ class LogKernel: public Kernel
*/
LogKernel(std::shared_ptr<Features >l, std::shared_ptr<Features >r, float64_t degree, std::shared_ptr<Distance> dist);

/** initialize kernel with features
* @param l features left-side
* @param r features right-side
* @return true if successful
*/
virtual bool init(std::shared_ptr<Features> l, std::shared_ptr<Features> r);

virtual EKernelType get_kernel_type() { return K_POWER; }

virtual EFeatureType get_feature_type() { return m_distance->get_feature_type(); }
Expand All @@ -70,8 +63,7 @@ class LogKernel: public Kernel
virtual float64_t compute(int32_t idx_a, int32_t idx_b);

protected:
std::shared_ptr<Distance> m_distance = NULL;

std::shared_ptr<Distance> m_distance=nullptr;
float64_t m_degree = 1.8;
};
}
Expand Down

0 comments on commit c811f7d

Please sign in to comment.