Skip to content

Commit

Permalink
next batch
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Feb 23, 2025
1 parent 76097c2 commit a595140
Show file tree
Hide file tree
Showing 22 changed files with 237 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cpp/daal/include/algorithms/em/em_gmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class DAAL_EXPORT Batch : public daal::algorithms::Analysis<batch>
* \param[in] other An algorithm to be used as the source to initialize the input objects
* and parameters of the algorithm
*/
Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

/**
* Returns the method of the algorithm
Expand Down
5 changes: 2 additions & 3 deletions cpp/daal/include/algorithms/em/em_gmm_init_batch.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ class DAAL_EXPORT Batch : public daal::algorithms::Analysis<batch>
typedef algorithms::em_gmm::init::Parameter ParameterType;
typedef algorithms::em_gmm::init::Result ResultType;

Batch(const size_t nComponents) : parameter(nComponents) { initialize(); }
Batch(const size_t nComponents);

/**
* Constructs an algorithm that computes initial values for the EM for GMM algorithm by copying input objects
* and parameters of another algorithm that computes initial values for the EM for GMM algorithm
* \param[in] other An algorithm to be used as the source to initialize the input objects
* and parameters of the algorithm
*/
Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter) { initialize(); }

Batch(const Batch<algorithmFPType, method> & other);
/**
* Returns the method of the algorithm
* \return Method of the algorithm
Expand Down
4 changes: 2 additions & 2 deletions cpp/daal/include/algorithms/engines/mcg59/mcg59.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ class DAAL_EXPORT Batch : public engines::BatchBase
}

protected:
Batch(size_t seed = 777) { initialize(); }
Batch(size_t seed = 777);

Batch(const Batch<algorithmFPType, method> & other) : super(other) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE { return new Batch<algorithmFPType, method>(*this); }

Expand Down
4 changes: 2 additions & 2 deletions cpp/daal/include/algorithms/engines/mrg32k3a/mrg32k3a.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class DAAL_EXPORT Batch : public engines::BatchBase
}

protected:
Batch(size_t seed = 777) { initialize(); }
Batch(size_t seed = 777);

Batch(const Batch<algorithmFPType, method> & other) : super(other) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE { return new Batch<algorithmFPType, method>(*this); }

Expand Down
4 changes: 2 additions & 2 deletions cpp/daal/include/algorithms/engines/mt19937/mt19937.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ class DAAL_EXPORT Batch : public engines::BatchBase
}

protected:
Batch(size_t seed = 777) { initialize(); }
Batch(size_t seed = 777);

Batch(const Batch<algorithmFPType, method> & other) : super(other) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE { return new Batch<algorithmFPType, method>(*this); }

Expand Down
4 changes: 2 additions & 2 deletions cpp/daal/include/algorithms/engines/mt2203/mt2203.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class DAAL_EXPORT Batch : public engines::FamilyBatchBase
}

protected:
Batch(size_t seed = 777) : super() { initialize(); }
Batch(size_t seed = 777);

Batch(const Batch<algorithmFPType, method> & other) : super(other) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE { return new Batch<algorithmFPType, method>(*this); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class DAAL_EXPORT Batch : public engines::BatchBase
}

protected:
Batch(size_t seed = 777) { initialize(); }
Batch(size_t seed = 777);

Batch(const Batch<algorithmFPType, method> & other) : super(other) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual Batch<algorithmFPType, method> * cloneImpl() const DAAL_C11_OVERRIDE { return new Batch<algorithmFPType, method>(*this); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ class Batch : public daal::algorithms::Prediction
/**
* Default constructor
*/
Batch() { initialize(); }
Batch();

/**
* Constructs an implicit ALS ratings prediction algorithm by copying input objects and parameters
* of another implicit ALS ratings prediction algorithm
* \param[in] other An algorithm to be used as the source to initialize the input objects
* and parameters of the algorithm
*/
Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

virtual ~Batch() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ class DAAL_EXPORT Batch : public daal::algorithms::Training<batch>
ParameterType parameter; /*!< %Algorithm \ref implicit_als::interface1::Parameter "parameter" */

/** Default constructor */
Batch() { initialize(); }
Batch();

/**
* Constructs an implicit ALS training algorithm by copying input objects and parameters
* of another implicit ALS training algorithm
* \param[in] other An algorithm to be used as the source to initialize the input objects
* and parameters of the algorithm
*/
Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter) { initialize(); }
Batch(const Batch<algorithmFPType, method> & other);

/**
* Returns the method of the algorithm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,15 @@ class DAAL_EXPORT Batch : public daal::algorithms::Training<batch>
ParameterType parameter; /*!< %Algorithm parameter */

/** Default constructor */
Batch() { initialize(); }
Batch();

/**
* Constructs an algorithm for initializing the implicit ALS model by copying input objects and parameters
* of another algorithm for initializing the implicit ALS model
* \param[in] other An algorithm to be used as the source to initialize the input objects
* and parameters of the algorithm
*/
Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter) { initialize(); }

Batch(const Batch<algorithmFPType, method> & other);
/**
* Returns the method of the algorithm
* \return Method of the algorithm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,19 @@ namespace daal
namespace algorithms
{
__DAAL_INSTANTIATE_DISPATCH_CONTAINER(em_gmm::BatchContainer, batch, DAAL_FPTYPE, em_gmm::defaultDense)
namespace em_gmm
{
namespace interface1
{

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter)
{
initialize();
}

template class Batch<DAAL_FPTYPE, em_gmm::defaultDense>;
} // namespace interface1
} // namespace em_gmm
} // namespace algorithms
} // namespace daal
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,27 @@ namespace daal
namespace algorithms
{
__DAAL_INSTANTIATE_DISPATCH_CONTAINER(em_gmm::init::BatchContainer, batch, DAAL_FPTYPE, em_gmm::init::defaultDense)
namespace em_gmm
{
namespace init
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const size_t nComponents) : parameter(nComponents)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter)
{
initialize();
}

template class Batch<DAAL_FPTYPE, em_gmm::init::defaultDense>;
} // namespace interface1
} // namespace init
} // namespace em_gmm
} // namespace algorithms
} // namespace daal
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ namespace mcg59
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(size_t seed)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : super(other)
{
initialize();
}

template class Batch<DAAL_FPTYPE, engines::mcg59::defaultDense>;
} // namespace interface1
} // namespace mcg59
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ namespace mrg32k3a
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(size_t seed)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : super(other)
{
initialize();
}

template class Batch<DAAL_FPTYPE, engines::mrg32k3a::defaultDense>;
} // namespace interface1
} // namespace mrg32k3a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ namespace mt19937
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(size_t seed)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : super(other)
{
initialize();
}

template class Batch<DAAL_FPTYPE, engines::mt19937::defaultDense>;
} // namespace interface1
} // namespace mt19937
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ namespace mt2203
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(size_t seed)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : super(other)
{
initialize();
}

template class Batch<DAAL_FPTYPE, engines::mt2203::defaultDense>;
} // namespace interface1
} // namespace mt2203
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ namespace philox4x32x10
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(size_t seed = 777)
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : super(other)
{
initialize();
}

template class Batch<DAAL_FPTYPE, engines::philox4x32x10::defaultDense>;
} // namespace interface1
} // namespace philox4x32x10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,31 @@ namespace algorithms
{
__DAAL_INSTANTIATE_DISPATCH_CONTAINER(implicit_als::prediction::ratings::BatchContainer, batch, DAAL_FPTYPE,
implicit_als::prediction::ratings::defaultDense)

namespace implicit_als
{
namespace prediction
{
namespace ratings
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch()
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter)
{
initialize();
}

template class Batch<DAAL_FPTYPE, implicit_als::prediction::ratings::defaultDense>;
} // namespace interface1
} // namespace ratings
} // namespace prediction
} // namespace implicit_als
} // namespace algorithms
} // namespace daal
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,27 @@ namespace daal
namespace algorithms
{
__DAAL_INSTANTIATE_DISPATCH_CONTAINER(implicit_als::training::BatchContainer, batch, DAAL_FPTYPE, implicit_als::training::fastCSR)
namespace implicit_als
{
namespace training
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch()
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter)
{
initialize();
}

template class Batch<DAAL_FPTYPE, implicit_als::training::fastCSR>;
} // namespace interface1
} // namespace training
} // namespace implicit_als
} // namespace algorithms
} // namespace daal
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,27 @@ namespace daal
namespace algorithms
{
__DAAL_INSTANTIATE_DISPATCH_CONTAINER(implicit_als::training::BatchContainer, batch, DAAL_FPTYPE, implicit_als::training::defaultDense)
namespace implicit_als
{
namespace training
{
namespace interface1
{
template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch()
{
initialize();
}

template <typename algorithmFPType, Method method>
DAAL_EXPORT Batch<algorithmFPType, method>::Batch(const Batch<algorithmFPType, method> & other) : input(other.input), parameter(other.parameter)
{
initialize();
}

template class Batch<DAAL_FPTYPE, implicit_als::training::defaultDense>;
} // namespace interface1
} // namespace training
} // namespace implicit_als
} // namespace algorithms
} // namespace daal
Loading

0 comments on commit a595140

Please sign in to comment.